module Stratosphere.MediaLive.Channel.FrameCaptureSettingsProperty (
module Exports, FrameCaptureSettingsProperty(..),
mkFrameCaptureSettingsProperty
) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import {-# SOURCE #-} Stratosphere.MediaLive.Channel.TimecodeBurninSettingsProperty as Exports
import Stratosphere.ResourceProperties
import Stratosphere.Value
data FrameCaptureSettingsProperty
=
FrameCaptureSettingsProperty {FrameCaptureSettingsProperty -> ()
haddock_workaround_ :: (),
FrameCaptureSettingsProperty -> Maybe (Value Integer)
captureInterval :: (Prelude.Maybe (Value Prelude.Integer)),
FrameCaptureSettingsProperty -> Maybe (Value Text)
captureIntervalUnits :: (Prelude.Maybe (Value Prelude.Text)),
FrameCaptureSettingsProperty
-> Maybe TimecodeBurninSettingsProperty
timecodeBurninSettings :: (Prelude.Maybe TimecodeBurninSettingsProperty)}
deriving stock (FrameCaptureSettingsProperty
-> FrameCaptureSettingsProperty -> Bool
(FrameCaptureSettingsProperty
-> FrameCaptureSettingsProperty -> Bool)
-> (FrameCaptureSettingsProperty
-> FrameCaptureSettingsProperty -> Bool)
-> Eq FrameCaptureSettingsProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: FrameCaptureSettingsProperty
-> FrameCaptureSettingsProperty -> Bool
== :: FrameCaptureSettingsProperty
-> FrameCaptureSettingsProperty -> Bool
$c/= :: FrameCaptureSettingsProperty
-> FrameCaptureSettingsProperty -> Bool
/= :: FrameCaptureSettingsProperty
-> FrameCaptureSettingsProperty -> Bool
Prelude.Eq, Int -> FrameCaptureSettingsProperty -> ShowS
[FrameCaptureSettingsProperty] -> ShowS
FrameCaptureSettingsProperty -> String
(Int -> FrameCaptureSettingsProperty -> ShowS)
-> (FrameCaptureSettingsProperty -> String)
-> ([FrameCaptureSettingsProperty] -> ShowS)
-> Show FrameCaptureSettingsProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> FrameCaptureSettingsProperty -> ShowS
showsPrec :: Int -> FrameCaptureSettingsProperty -> ShowS
$cshow :: FrameCaptureSettingsProperty -> String
show :: FrameCaptureSettingsProperty -> String
$cshowList :: [FrameCaptureSettingsProperty] -> ShowS
showList :: [FrameCaptureSettingsProperty] -> ShowS
Prelude.Show)
mkFrameCaptureSettingsProperty :: FrameCaptureSettingsProperty
mkFrameCaptureSettingsProperty :: FrameCaptureSettingsProperty
mkFrameCaptureSettingsProperty
= FrameCaptureSettingsProperty
{haddock_workaround_ :: ()
haddock_workaround_ = (), captureInterval :: Maybe (Value Integer)
captureInterval = Maybe (Value Integer)
forall a. Maybe a
Prelude.Nothing,
captureIntervalUnits :: Maybe (Value Text)
captureIntervalUnits = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing,
timecodeBurninSettings :: Maybe TimecodeBurninSettingsProperty
timecodeBurninSettings = Maybe TimecodeBurninSettingsProperty
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties FrameCaptureSettingsProperty where
toResourceProperties :: FrameCaptureSettingsProperty -> ResourceProperties
toResourceProperties FrameCaptureSettingsProperty {Maybe (Value Integer)
Maybe (Value Text)
Maybe TimecodeBurninSettingsProperty
()
haddock_workaround_ :: FrameCaptureSettingsProperty -> ()
captureInterval :: FrameCaptureSettingsProperty -> Maybe (Value Integer)
captureIntervalUnits :: FrameCaptureSettingsProperty -> Maybe (Value Text)
timecodeBurninSettings :: FrameCaptureSettingsProperty
-> Maybe TimecodeBurninSettingsProperty
haddock_workaround_ :: ()
captureInterval :: Maybe (Value Integer)
captureIntervalUnits :: Maybe (Value Text)
timecodeBurninSettings :: Maybe TimecodeBurninSettingsProperty
..}
= ResourceProperties
{awsType :: Text
awsType = Text
"AWS::MediaLive::Channel.FrameCaptureSettings",
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 Integer -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"CaptureInterval" (Value Integer -> (Key, Value))
-> Maybe (Value Integer) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Integer)
captureInterval,
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
"CaptureIntervalUnits" (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)
captureIntervalUnits,
Key -> TimecodeBurninSettingsProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"TimecodeBurninSettings"
(TimecodeBurninSettingsProperty -> (Key, Value))
-> Maybe TimecodeBurninSettingsProperty -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe TimecodeBurninSettingsProperty
timecodeBurninSettings])}
instance JSON.ToJSON FrameCaptureSettingsProperty where
toJSON :: FrameCaptureSettingsProperty -> Value
toJSON FrameCaptureSettingsProperty {Maybe (Value Integer)
Maybe (Value Text)
Maybe TimecodeBurninSettingsProperty
()
haddock_workaround_ :: FrameCaptureSettingsProperty -> ()
captureInterval :: FrameCaptureSettingsProperty -> Maybe (Value Integer)
captureIntervalUnits :: FrameCaptureSettingsProperty -> Maybe (Value Text)
timecodeBurninSettings :: FrameCaptureSettingsProperty
-> Maybe TimecodeBurninSettingsProperty
haddock_workaround_ :: ()
captureInterval :: Maybe (Value Integer)
captureIntervalUnits :: Maybe (Value Text)
timecodeBurninSettings :: Maybe TimecodeBurninSettingsProperty
..}
= [(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 Integer -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"CaptureInterval" (Value Integer -> (Key, Value))
-> Maybe (Value Integer) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Integer)
captureInterval,
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
"CaptureIntervalUnits" (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)
captureIntervalUnits,
Key -> TimecodeBurninSettingsProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"TimecodeBurninSettings"
(TimecodeBurninSettingsProperty -> (Key, Value))
-> Maybe TimecodeBurninSettingsProperty -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe TimecodeBurninSettingsProperty
timecodeBurninSettings]))
instance Property "CaptureInterval" FrameCaptureSettingsProperty where
type PropertyType "CaptureInterval" FrameCaptureSettingsProperty = Value Prelude.Integer
set :: PropertyType "CaptureInterval" FrameCaptureSettingsProperty
-> FrameCaptureSettingsProperty -> FrameCaptureSettingsProperty
set PropertyType "CaptureInterval" FrameCaptureSettingsProperty
newValue FrameCaptureSettingsProperty {Maybe (Value Integer)
Maybe (Value Text)
Maybe TimecodeBurninSettingsProperty
()
haddock_workaround_ :: FrameCaptureSettingsProperty -> ()
captureInterval :: FrameCaptureSettingsProperty -> Maybe (Value Integer)
captureIntervalUnits :: FrameCaptureSettingsProperty -> Maybe (Value Text)
timecodeBurninSettings :: FrameCaptureSettingsProperty
-> Maybe TimecodeBurninSettingsProperty
haddock_workaround_ :: ()
captureInterval :: Maybe (Value Integer)
captureIntervalUnits :: Maybe (Value Text)
timecodeBurninSettings :: Maybe TimecodeBurninSettingsProperty
..}
= FrameCaptureSettingsProperty
{captureInterval :: Maybe (Value Integer)
captureInterval = Value Integer -> Maybe (Value Integer)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "CaptureInterval" FrameCaptureSettingsProperty
Value Integer
newValue, Maybe (Value Text)
Maybe TimecodeBurninSettingsProperty
()
haddock_workaround_ :: ()
captureIntervalUnits :: Maybe (Value Text)
timecodeBurninSettings :: Maybe TimecodeBurninSettingsProperty
haddock_workaround_ :: ()
captureIntervalUnits :: Maybe (Value Text)
timecodeBurninSettings :: Maybe TimecodeBurninSettingsProperty
..}
instance Property "CaptureIntervalUnits" FrameCaptureSettingsProperty where
type PropertyType "CaptureIntervalUnits" FrameCaptureSettingsProperty = Value Prelude.Text
set :: PropertyType "CaptureIntervalUnits" FrameCaptureSettingsProperty
-> FrameCaptureSettingsProperty -> FrameCaptureSettingsProperty
set PropertyType "CaptureIntervalUnits" FrameCaptureSettingsProperty
newValue FrameCaptureSettingsProperty {Maybe (Value Integer)
Maybe (Value Text)
Maybe TimecodeBurninSettingsProperty
()
haddock_workaround_ :: FrameCaptureSettingsProperty -> ()
captureInterval :: FrameCaptureSettingsProperty -> Maybe (Value Integer)
captureIntervalUnits :: FrameCaptureSettingsProperty -> Maybe (Value Text)
timecodeBurninSettings :: FrameCaptureSettingsProperty
-> Maybe TimecodeBurninSettingsProperty
haddock_workaround_ :: ()
captureInterval :: Maybe (Value Integer)
captureIntervalUnits :: Maybe (Value Text)
timecodeBurninSettings :: Maybe TimecodeBurninSettingsProperty
..}
= FrameCaptureSettingsProperty
{captureIntervalUnits :: Maybe (Value Text)
captureIntervalUnits = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "CaptureIntervalUnits" FrameCaptureSettingsProperty
Value Text
newValue, Maybe (Value Integer)
Maybe TimecodeBurninSettingsProperty
()
haddock_workaround_ :: ()
captureInterval :: Maybe (Value Integer)
timecodeBurninSettings :: Maybe TimecodeBurninSettingsProperty
haddock_workaround_ :: ()
captureInterval :: Maybe (Value Integer)
timecodeBurninSettings :: Maybe TimecodeBurninSettingsProperty
..}
instance Property "TimecodeBurninSettings" FrameCaptureSettingsProperty where
type PropertyType "TimecodeBurninSettings" FrameCaptureSettingsProperty = TimecodeBurninSettingsProperty
set :: PropertyType "TimecodeBurninSettings" FrameCaptureSettingsProperty
-> FrameCaptureSettingsProperty -> FrameCaptureSettingsProperty
set PropertyType "TimecodeBurninSettings" FrameCaptureSettingsProperty
newValue FrameCaptureSettingsProperty {Maybe (Value Integer)
Maybe (Value Text)
Maybe TimecodeBurninSettingsProperty
()
haddock_workaround_ :: FrameCaptureSettingsProperty -> ()
captureInterval :: FrameCaptureSettingsProperty -> Maybe (Value Integer)
captureIntervalUnits :: FrameCaptureSettingsProperty -> Maybe (Value Text)
timecodeBurninSettings :: FrameCaptureSettingsProperty
-> Maybe TimecodeBurninSettingsProperty
haddock_workaround_ :: ()
captureInterval :: Maybe (Value Integer)
captureIntervalUnits :: Maybe (Value Text)
timecodeBurninSettings :: Maybe TimecodeBurninSettingsProperty
..}
= FrameCaptureSettingsProperty
{timecodeBurninSettings :: Maybe TimecodeBurninSettingsProperty
timecodeBurninSettings = TimecodeBurninSettingsProperty
-> Maybe TimecodeBurninSettingsProperty
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "TimecodeBurninSettings" FrameCaptureSettingsProperty
TimecodeBurninSettingsProperty
newValue, Maybe (Value Integer)
Maybe (Value Text)
()
haddock_workaround_ :: ()
captureInterval :: Maybe (Value Integer)
captureIntervalUnits :: Maybe (Value Text)
haddock_workaround_ :: ()
captureInterval :: Maybe (Value Integer)
captureIntervalUnits :: Maybe (Value Text)
..}