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