module Stratosphere.MediaLive.Channel.ColorCorrectionProperty (
        ColorCorrectionProperty(..), mkColorCorrectionProperty
    ) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data ColorCorrectionProperty
  = -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-medialive-channel-colorcorrection.html>
    ColorCorrectionProperty {ColorCorrectionProperty -> ()
haddock_workaround_ :: (),
                             -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-medialive-channel-colorcorrection.html#cfn-medialive-channel-colorcorrection-inputcolorspace>
                             ColorCorrectionProperty -> Maybe (Value Text)
inputColorSpace :: (Prelude.Maybe (Value Prelude.Text)),
                             -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-medialive-channel-colorcorrection.html#cfn-medialive-channel-colorcorrection-outputcolorspace>
                             ColorCorrectionProperty -> Maybe (Value Text)
outputColorSpace :: (Prelude.Maybe (Value Prelude.Text)),
                             -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-medialive-channel-colorcorrection.html#cfn-medialive-channel-colorcorrection-uri>
                             ColorCorrectionProperty -> Maybe (Value Text)
uri :: (Prelude.Maybe (Value Prelude.Text))}
  deriving stock (ColorCorrectionProperty -> ColorCorrectionProperty -> Bool
(ColorCorrectionProperty -> ColorCorrectionProperty -> Bool)
-> (ColorCorrectionProperty -> ColorCorrectionProperty -> Bool)
-> Eq ColorCorrectionProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: ColorCorrectionProperty -> ColorCorrectionProperty -> Bool
== :: ColorCorrectionProperty -> ColorCorrectionProperty -> Bool
$c/= :: ColorCorrectionProperty -> ColorCorrectionProperty -> Bool
/= :: ColorCorrectionProperty -> ColorCorrectionProperty -> Bool
Prelude.Eq, Int -> ColorCorrectionProperty -> ShowS
[ColorCorrectionProperty] -> ShowS
ColorCorrectionProperty -> String
(Int -> ColorCorrectionProperty -> ShowS)
-> (ColorCorrectionProperty -> String)
-> ([ColorCorrectionProperty] -> ShowS)
-> Show ColorCorrectionProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> ColorCorrectionProperty -> ShowS
showsPrec :: Int -> ColorCorrectionProperty -> ShowS
$cshow :: ColorCorrectionProperty -> String
show :: ColorCorrectionProperty -> String
$cshowList :: [ColorCorrectionProperty] -> ShowS
showList :: [ColorCorrectionProperty] -> ShowS
Prelude.Show)
mkColorCorrectionProperty :: ColorCorrectionProperty
mkColorCorrectionProperty :: ColorCorrectionProperty
mkColorCorrectionProperty
  = ColorCorrectionProperty
      {haddock_workaround_ :: ()
haddock_workaround_ = (), inputColorSpace :: Maybe (Value Text)
inputColorSpace = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing,
       outputColorSpace :: Maybe (Value Text)
outputColorSpace = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing, uri :: Maybe (Value Text)
uri = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties ColorCorrectionProperty where
  toResourceProperties :: ColorCorrectionProperty -> ResourceProperties
toResourceProperties ColorCorrectionProperty {Maybe (Value Text)
()
haddock_workaround_ :: ColorCorrectionProperty -> ()
inputColorSpace :: ColorCorrectionProperty -> Maybe (Value Text)
outputColorSpace :: ColorCorrectionProperty -> Maybe (Value Text)
uri :: ColorCorrectionProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
inputColorSpace :: Maybe (Value Text)
outputColorSpace :: Maybe (Value Text)
uri :: Maybe (Value Text)
..}
    = ResourceProperties
        {awsType :: Text
awsType = Text
"AWS::MediaLive::Channel.ColorCorrection",
         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 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
"InputColorSpace" (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)
inputColorSpace,
                            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
"OutputColorSpace" (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)
outputColorSpace,
                            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
"Uri" (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)
uri])}
instance JSON.ToJSON ColorCorrectionProperty where
  toJSON :: ColorCorrectionProperty -> Value
toJSON ColorCorrectionProperty {Maybe (Value Text)
()
haddock_workaround_ :: ColorCorrectionProperty -> ()
inputColorSpace :: ColorCorrectionProperty -> Maybe (Value Text)
outputColorSpace :: ColorCorrectionProperty -> Maybe (Value Text)
uri :: ColorCorrectionProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
inputColorSpace :: Maybe (Value Text)
outputColorSpace :: Maybe (Value Text)
uri :: 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 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
"InputColorSpace" (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)
inputColorSpace,
               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
"OutputColorSpace" (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)
outputColorSpace,
               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
"Uri" (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)
uri]))
instance Property "InputColorSpace" ColorCorrectionProperty where
  type PropertyType "InputColorSpace" ColorCorrectionProperty = Value Prelude.Text
  set :: PropertyType "InputColorSpace" ColorCorrectionProperty
-> ColorCorrectionProperty -> ColorCorrectionProperty
set PropertyType "InputColorSpace" ColorCorrectionProperty
newValue ColorCorrectionProperty {Maybe (Value Text)
()
haddock_workaround_ :: ColorCorrectionProperty -> ()
inputColorSpace :: ColorCorrectionProperty -> Maybe (Value Text)
outputColorSpace :: ColorCorrectionProperty -> Maybe (Value Text)
uri :: ColorCorrectionProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
inputColorSpace :: Maybe (Value Text)
outputColorSpace :: Maybe (Value Text)
uri :: Maybe (Value Text)
..}
    = ColorCorrectionProperty
        {inputColorSpace :: Maybe (Value Text)
inputColorSpace = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "InputColorSpace" ColorCorrectionProperty
Value Text
newValue, Maybe (Value Text)
()
haddock_workaround_ :: ()
outputColorSpace :: Maybe (Value Text)
uri :: Maybe (Value Text)
haddock_workaround_ :: ()
outputColorSpace :: Maybe (Value Text)
uri :: Maybe (Value Text)
..}
instance Property "OutputColorSpace" ColorCorrectionProperty where
  type PropertyType "OutputColorSpace" ColorCorrectionProperty = Value Prelude.Text
  set :: PropertyType "OutputColorSpace" ColorCorrectionProperty
-> ColorCorrectionProperty -> ColorCorrectionProperty
set PropertyType "OutputColorSpace" ColorCorrectionProperty
newValue ColorCorrectionProperty {Maybe (Value Text)
()
haddock_workaround_ :: ColorCorrectionProperty -> ()
inputColorSpace :: ColorCorrectionProperty -> Maybe (Value Text)
outputColorSpace :: ColorCorrectionProperty -> Maybe (Value Text)
uri :: ColorCorrectionProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
inputColorSpace :: Maybe (Value Text)
outputColorSpace :: Maybe (Value Text)
uri :: Maybe (Value Text)
..}
    = ColorCorrectionProperty
        {outputColorSpace :: Maybe (Value Text)
outputColorSpace = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "OutputColorSpace" ColorCorrectionProperty
Value Text
newValue, Maybe (Value Text)
()
haddock_workaround_ :: ()
inputColorSpace :: Maybe (Value Text)
uri :: Maybe (Value Text)
haddock_workaround_ :: ()
inputColorSpace :: Maybe (Value Text)
uri :: Maybe (Value Text)
..}
instance Property "Uri" ColorCorrectionProperty where
  type PropertyType "Uri" ColorCorrectionProperty = Value Prelude.Text
  set :: PropertyType "Uri" ColorCorrectionProperty
-> ColorCorrectionProperty -> ColorCorrectionProperty
set PropertyType "Uri" ColorCorrectionProperty
newValue ColorCorrectionProperty {Maybe (Value Text)
()
haddock_workaround_ :: ColorCorrectionProperty -> ()
inputColorSpace :: ColorCorrectionProperty -> Maybe (Value Text)
outputColorSpace :: ColorCorrectionProperty -> Maybe (Value Text)
uri :: ColorCorrectionProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
inputColorSpace :: Maybe (Value Text)
outputColorSpace :: Maybe (Value Text)
uri :: Maybe (Value Text)
..}
    = ColorCorrectionProperty {uri :: Maybe (Value Text)
uri = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "Uri" ColorCorrectionProperty
Value Text
newValue, Maybe (Value Text)
()
haddock_workaround_ :: ()
inputColorSpace :: Maybe (Value Text)
outputColorSpace :: Maybe (Value Text)
haddock_workaround_ :: ()
inputColorSpace :: Maybe (Value Text)
outputColorSpace :: Maybe (Value Text)
..}