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