module Stratosphere.Bedrock.DataAutomationProject.ImageOverrideConfigurationProperty (
module Exports, ImageOverrideConfigurationProperty(..),
mkImageOverrideConfigurationProperty
) 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 ImageOverrideConfigurationProperty
=
ImageOverrideConfigurationProperty {ImageOverrideConfigurationProperty -> ()
haddock_workaround_ :: (),
ImageOverrideConfigurationProperty
-> Maybe ModalityProcessingConfigurationProperty
modalityProcessing :: (Prelude.Maybe ModalityProcessingConfigurationProperty)}
deriving stock (ImageOverrideConfigurationProperty
-> ImageOverrideConfigurationProperty -> Bool
(ImageOverrideConfigurationProperty
-> ImageOverrideConfigurationProperty -> Bool)
-> (ImageOverrideConfigurationProperty
-> ImageOverrideConfigurationProperty -> Bool)
-> Eq ImageOverrideConfigurationProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: ImageOverrideConfigurationProperty
-> ImageOverrideConfigurationProperty -> Bool
== :: ImageOverrideConfigurationProperty
-> ImageOverrideConfigurationProperty -> Bool
$c/= :: ImageOverrideConfigurationProperty
-> ImageOverrideConfigurationProperty -> Bool
/= :: ImageOverrideConfigurationProperty
-> ImageOverrideConfigurationProperty -> Bool
Prelude.Eq, Int -> ImageOverrideConfigurationProperty -> ShowS
[ImageOverrideConfigurationProperty] -> ShowS
ImageOverrideConfigurationProperty -> String
(Int -> ImageOverrideConfigurationProperty -> ShowS)
-> (ImageOverrideConfigurationProperty -> String)
-> ([ImageOverrideConfigurationProperty] -> ShowS)
-> Show ImageOverrideConfigurationProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> ImageOverrideConfigurationProperty -> ShowS
showsPrec :: Int -> ImageOverrideConfigurationProperty -> ShowS
$cshow :: ImageOverrideConfigurationProperty -> String
show :: ImageOverrideConfigurationProperty -> String
$cshowList :: [ImageOverrideConfigurationProperty] -> ShowS
showList :: [ImageOverrideConfigurationProperty] -> ShowS
Prelude.Show)
mkImageOverrideConfigurationProperty ::
ImageOverrideConfigurationProperty
mkImageOverrideConfigurationProperty :: ImageOverrideConfigurationProperty
mkImageOverrideConfigurationProperty
= ImageOverrideConfigurationProperty
{haddock_workaround_ :: ()
haddock_workaround_ = (), modalityProcessing :: Maybe ModalityProcessingConfigurationProperty
modalityProcessing = Maybe ModalityProcessingConfigurationProperty
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties ImageOverrideConfigurationProperty where
toResourceProperties :: ImageOverrideConfigurationProperty -> ResourceProperties
toResourceProperties ImageOverrideConfigurationProperty {Maybe ModalityProcessingConfigurationProperty
()
haddock_workaround_ :: ImageOverrideConfigurationProperty -> ()
modalityProcessing :: ImageOverrideConfigurationProperty
-> Maybe ModalityProcessingConfigurationProperty
haddock_workaround_ :: ()
modalityProcessing :: Maybe ModalityProcessingConfigurationProperty
..}
= ResourceProperties
{awsType :: Text
awsType = Text
"AWS::Bedrock::DataAutomationProject.ImageOverrideConfiguration",
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 ImageOverrideConfigurationProperty where
toJSON :: ImageOverrideConfigurationProperty -> Value
toJSON ImageOverrideConfigurationProperty {Maybe ModalityProcessingConfigurationProperty
()
haddock_workaround_ :: ImageOverrideConfigurationProperty -> ()
modalityProcessing :: ImageOverrideConfigurationProperty
-> 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" ImageOverrideConfigurationProperty where
type PropertyType "ModalityProcessing" ImageOverrideConfigurationProperty = ModalityProcessingConfigurationProperty
set :: PropertyType
"ModalityProcessing" ImageOverrideConfigurationProperty
-> ImageOverrideConfigurationProperty
-> ImageOverrideConfigurationProperty
set PropertyType
"ModalityProcessing" ImageOverrideConfigurationProperty
newValue ImageOverrideConfigurationProperty {Maybe ModalityProcessingConfigurationProperty
()
haddock_workaround_ :: ImageOverrideConfigurationProperty -> ()
modalityProcessing :: ImageOverrideConfigurationProperty
-> Maybe ModalityProcessingConfigurationProperty
haddock_workaround_ :: ()
modalityProcessing :: Maybe ModalityProcessingConfigurationProperty
..}
= ImageOverrideConfigurationProperty
{modalityProcessing :: Maybe ModalityProcessingConfigurationProperty
modalityProcessing = ModalityProcessingConfigurationProperty
-> Maybe ModalityProcessingConfigurationProperty
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType
"ModalityProcessing" ImageOverrideConfigurationProperty
ModalityProcessingConfigurationProperty
newValue, ()
haddock_workaround_ :: ()
haddock_workaround_ :: ()
..}