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