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