module Stratosphere.Comprehend.DocumentClassifier.DocumentReaderConfigProperty (
DocumentReaderConfigProperty(..), mkDocumentReaderConfigProperty
) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data DocumentReaderConfigProperty
=
DocumentReaderConfigProperty {DocumentReaderConfigProperty -> ()
haddock_workaround_ :: (),
DocumentReaderConfigProperty -> Value Text
documentReadAction :: (Value Prelude.Text),
DocumentReaderConfigProperty -> Maybe (Value Text)
documentReadMode :: (Prelude.Maybe (Value Prelude.Text)),
DocumentReaderConfigProperty -> Maybe (ValueList Text)
featureTypes :: (Prelude.Maybe (ValueList Prelude.Text))}
deriving stock (DocumentReaderConfigProperty
-> DocumentReaderConfigProperty -> Bool
(DocumentReaderConfigProperty
-> DocumentReaderConfigProperty -> Bool)
-> (DocumentReaderConfigProperty
-> DocumentReaderConfigProperty -> Bool)
-> Eq DocumentReaderConfigProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: DocumentReaderConfigProperty
-> DocumentReaderConfigProperty -> Bool
== :: DocumentReaderConfigProperty
-> DocumentReaderConfigProperty -> Bool
$c/= :: DocumentReaderConfigProperty
-> DocumentReaderConfigProperty -> Bool
/= :: DocumentReaderConfigProperty
-> DocumentReaderConfigProperty -> Bool
Prelude.Eq, Int -> DocumentReaderConfigProperty -> ShowS
[DocumentReaderConfigProperty] -> ShowS
DocumentReaderConfigProperty -> String
(Int -> DocumentReaderConfigProperty -> ShowS)
-> (DocumentReaderConfigProperty -> String)
-> ([DocumentReaderConfigProperty] -> ShowS)
-> Show DocumentReaderConfigProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> DocumentReaderConfigProperty -> ShowS
showsPrec :: Int -> DocumentReaderConfigProperty -> ShowS
$cshow :: DocumentReaderConfigProperty -> String
show :: DocumentReaderConfigProperty -> String
$cshowList :: [DocumentReaderConfigProperty] -> ShowS
showList :: [DocumentReaderConfigProperty] -> ShowS
Prelude.Show)
mkDocumentReaderConfigProperty ::
Value Prelude.Text -> DocumentReaderConfigProperty
mkDocumentReaderConfigProperty :: Value Text -> DocumentReaderConfigProperty
mkDocumentReaderConfigProperty Value Text
documentReadAction
= DocumentReaderConfigProperty
{haddock_workaround_ :: ()
haddock_workaround_ = (), documentReadAction :: Value Text
documentReadAction = Value Text
documentReadAction,
documentReadMode :: Maybe (Value Text)
documentReadMode = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing, featureTypes :: Maybe (ValueList Text)
featureTypes = Maybe (ValueList Text)
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties DocumentReaderConfigProperty where
toResourceProperties :: DocumentReaderConfigProperty -> ResourceProperties
toResourceProperties DocumentReaderConfigProperty {Maybe (ValueList Text)
Maybe (Value Text)
()
Value Text
haddock_workaround_ :: DocumentReaderConfigProperty -> ()
documentReadAction :: DocumentReaderConfigProperty -> Value Text
documentReadMode :: DocumentReaderConfigProperty -> Maybe (Value Text)
featureTypes :: DocumentReaderConfigProperty -> Maybe (ValueList Text)
haddock_workaround_ :: ()
documentReadAction :: Value Text
documentReadMode :: Maybe (Value Text)
featureTypes :: Maybe (ValueList Text)
..}
= ResourceProperties
{awsType :: Text
awsType = Text
"AWS::Comprehend::DocumentClassifier.DocumentReaderConfig",
supportsTags :: Bool
supportsTags = Bool
Prelude.False,
properties :: Object
properties = [Item Object] -> Object
forall l. IsList l => [Item l] -> l
Prelude.fromList
([(Key, Value)] -> [(Key, Value)] -> [(Key, Value)]
forall a. Semigroup a => a -> a -> a
(Prelude.<>)
[Key
"DocumentReadAction" 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..= Value Text
documentReadAction]
([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
"DocumentReadMode" (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)
documentReadMode,
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
"FeatureTypes" (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)
featureTypes]))}
instance JSON.ToJSON DocumentReaderConfigProperty where
toJSON :: DocumentReaderConfigProperty -> Value
toJSON DocumentReaderConfigProperty {Maybe (ValueList Text)
Maybe (Value Text)
()
Value Text
haddock_workaround_ :: DocumentReaderConfigProperty -> ()
documentReadAction :: DocumentReaderConfigProperty -> Value Text
documentReadMode :: DocumentReaderConfigProperty -> Maybe (Value Text)
featureTypes :: DocumentReaderConfigProperty -> Maybe (ValueList Text)
haddock_workaround_ :: ()
documentReadAction :: Value Text
documentReadMode :: Maybe (Value Text)
featureTypes :: Maybe (ValueList Text)
..}
= [(Key, Value)] -> Value
JSON.object
([Item [(Key, Value)]] -> [(Key, Value)]
forall l. IsList l => [Item l] -> l
Prelude.fromList
([(Key, Value)] -> [(Key, Value)] -> [(Key, Value)]
forall a. Semigroup a => a -> a -> a
(Prelude.<>)
[Key
"DocumentReadAction" 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..= Value Text
documentReadAction]
([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
"DocumentReadMode" (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)
documentReadMode,
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
"FeatureTypes" (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)
featureTypes])))
instance Property "DocumentReadAction" DocumentReaderConfigProperty where
type PropertyType "DocumentReadAction" DocumentReaderConfigProperty = Value Prelude.Text
set :: PropertyType "DocumentReadAction" DocumentReaderConfigProperty
-> DocumentReaderConfigProperty -> DocumentReaderConfigProperty
set PropertyType "DocumentReadAction" DocumentReaderConfigProperty
newValue DocumentReaderConfigProperty {Maybe (ValueList Text)
Maybe (Value Text)
()
Value Text
haddock_workaround_ :: DocumentReaderConfigProperty -> ()
documentReadAction :: DocumentReaderConfigProperty -> Value Text
documentReadMode :: DocumentReaderConfigProperty -> Maybe (Value Text)
featureTypes :: DocumentReaderConfigProperty -> Maybe (ValueList Text)
haddock_workaround_ :: ()
documentReadAction :: Value Text
documentReadMode :: Maybe (Value Text)
featureTypes :: Maybe (ValueList Text)
..}
= DocumentReaderConfigProperty {documentReadAction :: Value Text
documentReadAction = PropertyType "DocumentReadAction" DocumentReaderConfigProperty
Value Text
newValue, Maybe (ValueList Text)
Maybe (Value Text)
()
haddock_workaround_ :: ()
documentReadMode :: Maybe (Value Text)
featureTypes :: Maybe (ValueList Text)
haddock_workaround_ :: ()
documentReadMode :: Maybe (Value Text)
featureTypes :: Maybe (ValueList Text)
..}
instance Property "DocumentReadMode" DocumentReaderConfigProperty where
type PropertyType "DocumentReadMode" DocumentReaderConfigProperty = Value Prelude.Text
set :: PropertyType "DocumentReadMode" DocumentReaderConfigProperty
-> DocumentReaderConfigProperty -> DocumentReaderConfigProperty
set PropertyType "DocumentReadMode" DocumentReaderConfigProperty
newValue DocumentReaderConfigProperty {Maybe (ValueList Text)
Maybe (Value Text)
()
Value Text
haddock_workaround_ :: DocumentReaderConfigProperty -> ()
documentReadAction :: DocumentReaderConfigProperty -> Value Text
documentReadMode :: DocumentReaderConfigProperty -> Maybe (Value Text)
featureTypes :: DocumentReaderConfigProperty -> Maybe (ValueList Text)
haddock_workaround_ :: ()
documentReadAction :: Value Text
documentReadMode :: Maybe (Value Text)
featureTypes :: Maybe (ValueList Text)
..}
= DocumentReaderConfigProperty
{documentReadMode :: Maybe (Value Text)
documentReadMode = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "DocumentReadMode" DocumentReaderConfigProperty
Value Text
newValue, Maybe (ValueList Text)
()
Value Text
haddock_workaround_ :: ()
documentReadAction :: Value Text
featureTypes :: Maybe (ValueList Text)
haddock_workaround_ :: ()
documentReadAction :: Value Text
featureTypes :: Maybe (ValueList Text)
..}
instance Property "FeatureTypes" DocumentReaderConfigProperty where
type PropertyType "FeatureTypes" DocumentReaderConfigProperty = ValueList Prelude.Text
set :: PropertyType "FeatureTypes" DocumentReaderConfigProperty
-> DocumentReaderConfigProperty -> DocumentReaderConfigProperty
set PropertyType "FeatureTypes" DocumentReaderConfigProperty
newValue DocumentReaderConfigProperty {Maybe (ValueList Text)
Maybe (Value Text)
()
Value Text
haddock_workaround_ :: DocumentReaderConfigProperty -> ()
documentReadAction :: DocumentReaderConfigProperty -> Value Text
documentReadMode :: DocumentReaderConfigProperty -> Maybe (Value Text)
featureTypes :: DocumentReaderConfigProperty -> Maybe (ValueList Text)
haddock_workaround_ :: ()
documentReadAction :: Value Text
documentReadMode :: Maybe (Value Text)
featureTypes :: Maybe (ValueList Text)
..}
= DocumentReaderConfigProperty
{featureTypes :: Maybe (ValueList Text)
featureTypes = ValueList Text -> Maybe (ValueList Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "FeatureTypes" DocumentReaderConfigProperty
ValueList Text
newValue, Maybe (Value Text)
()
Value Text
haddock_workaround_ :: ()
documentReadAction :: Value Text
documentReadMode :: Maybe (Value Text)
haddock_workaround_ :: ()
documentReadAction :: Value Text
documentReadMode :: Maybe (Value Text)
..}