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