module Stratosphere.MediaLive.Channel.MotionGraphicsConfigurationProperty (
        module Exports, MotionGraphicsConfigurationProperty(..),
        mkMotionGraphicsConfigurationProperty
    ) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import {-# SOURCE #-} Stratosphere.MediaLive.Channel.MotionGraphicsSettingsProperty as Exports
import Stratosphere.ResourceProperties
import Stratosphere.Value
data MotionGraphicsConfigurationProperty
  = -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-medialive-channel-motiongraphicsconfiguration.html>
    MotionGraphicsConfigurationProperty {MotionGraphicsConfigurationProperty -> ()
haddock_workaround_ :: (),
                                         -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-medialive-channel-motiongraphicsconfiguration.html#cfn-medialive-channel-motiongraphicsconfiguration-motiongraphicsinsertion>
                                         MotionGraphicsConfigurationProperty -> Maybe (Value Text)
motionGraphicsInsertion :: (Prelude.Maybe (Value Prelude.Text)),
                                         -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-medialive-channel-motiongraphicsconfiguration.html#cfn-medialive-channel-motiongraphicsconfiguration-motiongraphicssettings>
                                         MotionGraphicsConfigurationProperty
-> Maybe MotionGraphicsSettingsProperty
motionGraphicsSettings :: (Prelude.Maybe MotionGraphicsSettingsProperty)}
  deriving stock (MotionGraphicsConfigurationProperty
-> MotionGraphicsConfigurationProperty -> Bool
(MotionGraphicsConfigurationProperty
 -> MotionGraphicsConfigurationProperty -> Bool)
-> (MotionGraphicsConfigurationProperty
    -> MotionGraphicsConfigurationProperty -> Bool)
-> Eq MotionGraphicsConfigurationProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: MotionGraphicsConfigurationProperty
-> MotionGraphicsConfigurationProperty -> Bool
== :: MotionGraphicsConfigurationProperty
-> MotionGraphicsConfigurationProperty -> Bool
$c/= :: MotionGraphicsConfigurationProperty
-> MotionGraphicsConfigurationProperty -> Bool
/= :: MotionGraphicsConfigurationProperty
-> MotionGraphicsConfigurationProperty -> Bool
Prelude.Eq, Int -> MotionGraphicsConfigurationProperty -> ShowS
[MotionGraphicsConfigurationProperty] -> ShowS
MotionGraphicsConfigurationProperty -> String
(Int -> MotionGraphicsConfigurationProperty -> ShowS)
-> (MotionGraphicsConfigurationProperty -> String)
-> ([MotionGraphicsConfigurationProperty] -> ShowS)
-> Show MotionGraphicsConfigurationProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> MotionGraphicsConfigurationProperty -> ShowS
showsPrec :: Int -> MotionGraphicsConfigurationProperty -> ShowS
$cshow :: MotionGraphicsConfigurationProperty -> String
show :: MotionGraphicsConfigurationProperty -> String
$cshowList :: [MotionGraphicsConfigurationProperty] -> ShowS
showList :: [MotionGraphicsConfigurationProperty] -> ShowS
Prelude.Show)
mkMotionGraphicsConfigurationProperty ::
  MotionGraphicsConfigurationProperty
mkMotionGraphicsConfigurationProperty :: MotionGraphicsConfigurationProperty
mkMotionGraphicsConfigurationProperty
  = MotionGraphicsConfigurationProperty
      {haddock_workaround_ :: ()
haddock_workaround_ = (),
       motionGraphicsInsertion :: Maybe (Value Text)
motionGraphicsInsertion = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing,
       motionGraphicsSettings :: Maybe MotionGraphicsSettingsProperty
motionGraphicsSettings = Maybe MotionGraphicsSettingsProperty
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties MotionGraphicsConfigurationProperty where
  toResourceProperties :: MotionGraphicsConfigurationProperty -> ResourceProperties
toResourceProperties MotionGraphicsConfigurationProperty {Maybe (Value Text)
Maybe MotionGraphicsSettingsProperty
()
haddock_workaround_ :: MotionGraphicsConfigurationProperty -> ()
motionGraphicsInsertion :: MotionGraphicsConfigurationProperty -> Maybe (Value Text)
motionGraphicsSettings :: MotionGraphicsConfigurationProperty
-> Maybe MotionGraphicsSettingsProperty
haddock_workaround_ :: ()
motionGraphicsInsertion :: Maybe (Value Text)
motionGraphicsSettings :: Maybe MotionGraphicsSettingsProperty
..}
    = ResourceProperties
        {awsType :: Text
awsType = Text
"AWS::MediaLive::Channel.MotionGraphicsConfiguration",
         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
"MotionGraphicsInsertion"
                              (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)
motionGraphicsInsertion,
                            Key -> MotionGraphicsSettingsProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"MotionGraphicsSettings"
                              (MotionGraphicsSettingsProperty -> (Key, Value))
-> Maybe MotionGraphicsSettingsProperty -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe MotionGraphicsSettingsProperty
motionGraphicsSettings])}
instance JSON.ToJSON MotionGraphicsConfigurationProperty where
  toJSON :: MotionGraphicsConfigurationProperty -> Value
toJSON MotionGraphicsConfigurationProperty {Maybe (Value Text)
Maybe MotionGraphicsSettingsProperty
()
haddock_workaround_ :: MotionGraphicsConfigurationProperty -> ()
motionGraphicsInsertion :: MotionGraphicsConfigurationProperty -> Maybe (Value Text)
motionGraphicsSettings :: MotionGraphicsConfigurationProperty
-> Maybe MotionGraphicsSettingsProperty
haddock_workaround_ :: ()
motionGraphicsInsertion :: Maybe (Value Text)
motionGraphicsSettings :: Maybe MotionGraphicsSettingsProperty
..}
    = [(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
"MotionGraphicsInsertion"
                 (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)
motionGraphicsInsertion,
               Key -> MotionGraphicsSettingsProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"MotionGraphicsSettings"
                 (MotionGraphicsSettingsProperty -> (Key, Value))
-> Maybe MotionGraphicsSettingsProperty -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe MotionGraphicsSettingsProperty
motionGraphicsSettings]))
instance Property "MotionGraphicsInsertion" MotionGraphicsConfigurationProperty where
  type PropertyType "MotionGraphicsInsertion" MotionGraphicsConfigurationProperty = Value Prelude.Text
  set :: PropertyType
  "MotionGraphicsInsertion" MotionGraphicsConfigurationProperty
-> MotionGraphicsConfigurationProperty
-> MotionGraphicsConfigurationProperty
set PropertyType
  "MotionGraphicsInsertion" MotionGraphicsConfigurationProperty
newValue MotionGraphicsConfigurationProperty {Maybe (Value Text)
Maybe MotionGraphicsSettingsProperty
()
haddock_workaround_ :: MotionGraphicsConfigurationProperty -> ()
motionGraphicsInsertion :: MotionGraphicsConfigurationProperty -> Maybe (Value Text)
motionGraphicsSettings :: MotionGraphicsConfigurationProperty
-> Maybe MotionGraphicsSettingsProperty
haddock_workaround_ :: ()
motionGraphicsInsertion :: Maybe (Value Text)
motionGraphicsSettings :: Maybe MotionGraphicsSettingsProperty
..}
    = MotionGraphicsConfigurationProperty
        {motionGraphicsInsertion :: Maybe (Value Text)
motionGraphicsInsertion = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType
  "MotionGraphicsInsertion" MotionGraphicsConfigurationProperty
Value Text
newValue, Maybe MotionGraphicsSettingsProperty
()
haddock_workaround_ :: ()
motionGraphicsSettings :: Maybe MotionGraphicsSettingsProperty
haddock_workaround_ :: ()
motionGraphicsSettings :: Maybe MotionGraphicsSettingsProperty
..}
instance Property "MotionGraphicsSettings" MotionGraphicsConfigurationProperty where
  type PropertyType "MotionGraphicsSettings" MotionGraphicsConfigurationProperty = MotionGraphicsSettingsProperty
  set :: PropertyType
  "MotionGraphicsSettings" MotionGraphicsConfigurationProperty
-> MotionGraphicsConfigurationProperty
-> MotionGraphicsConfigurationProperty
set PropertyType
  "MotionGraphicsSettings" MotionGraphicsConfigurationProperty
newValue MotionGraphicsConfigurationProperty {Maybe (Value Text)
Maybe MotionGraphicsSettingsProperty
()
haddock_workaround_ :: MotionGraphicsConfigurationProperty -> ()
motionGraphicsInsertion :: MotionGraphicsConfigurationProperty -> Maybe (Value Text)
motionGraphicsSettings :: MotionGraphicsConfigurationProperty
-> Maybe MotionGraphicsSettingsProperty
haddock_workaround_ :: ()
motionGraphicsInsertion :: Maybe (Value Text)
motionGraphicsSettings :: Maybe MotionGraphicsSettingsProperty
..}
    = MotionGraphicsConfigurationProperty
        {motionGraphicsSettings :: Maybe MotionGraphicsSettingsProperty
motionGraphicsSettings = MotionGraphicsSettingsProperty
-> Maybe MotionGraphicsSettingsProperty
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType
  "MotionGraphicsSettings" MotionGraphicsConfigurationProperty
MotionGraphicsSettingsProperty
newValue, Maybe (Value Text)
()
haddock_workaround_ :: ()
motionGraphicsInsertion :: Maybe (Value Text)
haddock_workaround_ :: ()
motionGraphicsInsertion :: Maybe (Value Text)
..}