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