module Stratosphere.Comprehend.Flywheel.DocumentClassificationConfigProperty (
        DocumentClassificationConfigProperty(..),
        mkDocumentClassificationConfigProperty
    ) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data DocumentClassificationConfigProperty
  = -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-comprehend-flywheel-documentclassificationconfig.html>
    DocumentClassificationConfigProperty {DocumentClassificationConfigProperty -> ()
haddock_workaround_ :: (),
                                          -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-comprehend-flywheel-documentclassificationconfig.html#cfn-comprehend-flywheel-documentclassificationconfig-labels>
                                          DocumentClassificationConfigProperty -> Maybe (ValueList Text)
labels :: (Prelude.Maybe (ValueList Prelude.Text)),
                                          -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-comprehend-flywheel-documentclassificationconfig.html#cfn-comprehend-flywheel-documentclassificationconfig-mode>
                                          DocumentClassificationConfigProperty -> Value Text
mode :: (Value Prelude.Text)}
  deriving stock (DocumentClassificationConfigProperty
-> DocumentClassificationConfigProperty -> Bool
(DocumentClassificationConfigProperty
 -> DocumentClassificationConfigProperty -> Bool)
-> (DocumentClassificationConfigProperty
    -> DocumentClassificationConfigProperty -> Bool)
-> Eq DocumentClassificationConfigProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: DocumentClassificationConfigProperty
-> DocumentClassificationConfigProperty -> Bool
== :: DocumentClassificationConfigProperty
-> DocumentClassificationConfigProperty -> Bool
$c/= :: DocumentClassificationConfigProperty
-> DocumentClassificationConfigProperty -> Bool
/= :: DocumentClassificationConfigProperty
-> DocumentClassificationConfigProperty -> Bool
Prelude.Eq, Int -> DocumentClassificationConfigProperty -> ShowS
[DocumentClassificationConfigProperty] -> ShowS
DocumentClassificationConfigProperty -> String
(Int -> DocumentClassificationConfigProperty -> ShowS)
-> (DocumentClassificationConfigProperty -> String)
-> ([DocumentClassificationConfigProperty] -> ShowS)
-> Show DocumentClassificationConfigProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> DocumentClassificationConfigProperty -> ShowS
showsPrec :: Int -> DocumentClassificationConfigProperty -> ShowS
$cshow :: DocumentClassificationConfigProperty -> String
show :: DocumentClassificationConfigProperty -> String
$cshowList :: [DocumentClassificationConfigProperty] -> ShowS
showList :: [DocumentClassificationConfigProperty] -> ShowS
Prelude.Show)
mkDocumentClassificationConfigProperty ::
  Value Prelude.Text -> DocumentClassificationConfigProperty
mkDocumentClassificationConfigProperty :: Value Text -> DocumentClassificationConfigProperty
mkDocumentClassificationConfigProperty Value Text
mode
  = DocumentClassificationConfigProperty
      {haddock_workaround_ :: ()
haddock_workaround_ = (), mode :: Value Text
mode = Value Text
mode, labels :: Maybe (ValueList Text)
labels = Maybe (ValueList Text)
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties DocumentClassificationConfigProperty where
  toResourceProperties :: DocumentClassificationConfigProperty -> ResourceProperties
toResourceProperties DocumentClassificationConfigProperty {Maybe (ValueList Text)
()
Value Text
haddock_workaround_ :: DocumentClassificationConfigProperty -> ()
labels :: DocumentClassificationConfigProperty -> Maybe (ValueList Text)
mode :: DocumentClassificationConfigProperty -> Value Text
haddock_workaround_ :: ()
labels :: Maybe (ValueList Text)
mode :: Value Text
..}
    = ResourceProperties
        {awsType :: Text
awsType = Text
"AWS::Comprehend::Flywheel.DocumentClassificationConfig",
         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
"Mode" 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
mode]
                           ([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
"Labels" (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)
labels]))}
instance JSON.ToJSON DocumentClassificationConfigProperty where
  toJSON :: DocumentClassificationConfigProperty -> Value
toJSON DocumentClassificationConfigProperty {Maybe (ValueList Text)
()
Value Text
haddock_workaround_ :: DocumentClassificationConfigProperty -> ()
labels :: DocumentClassificationConfigProperty -> Maybe (ValueList Text)
mode :: DocumentClassificationConfigProperty -> Value Text
haddock_workaround_ :: ()
labels :: Maybe (ValueList Text)
mode :: Value 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
"Mode" 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
mode]
              ([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
"Labels" (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)
labels])))
instance Property "Labels" DocumentClassificationConfigProperty where
  type PropertyType "Labels" DocumentClassificationConfigProperty = ValueList Prelude.Text
  set :: PropertyType "Labels" DocumentClassificationConfigProperty
-> DocumentClassificationConfigProperty
-> DocumentClassificationConfigProperty
set PropertyType "Labels" DocumentClassificationConfigProperty
newValue DocumentClassificationConfigProperty {Maybe (ValueList Text)
()
Value Text
haddock_workaround_ :: DocumentClassificationConfigProperty -> ()
labels :: DocumentClassificationConfigProperty -> Maybe (ValueList Text)
mode :: DocumentClassificationConfigProperty -> Value Text
haddock_workaround_ :: ()
labels :: Maybe (ValueList Text)
mode :: Value Text
..}
    = DocumentClassificationConfigProperty
        {labels :: Maybe (ValueList Text)
labels = ValueList Text -> Maybe (ValueList Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "Labels" DocumentClassificationConfigProperty
ValueList Text
newValue, ()
Value Text
haddock_workaround_ :: ()
mode :: Value Text
haddock_workaround_ :: ()
mode :: Value Text
..}
instance Property "Mode" DocumentClassificationConfigProperty where
  type PropertyType "Mode" DocumentClassificationConfigProperty = Value Prelude.Text
  set :: PropertyType "Mode" DocumentClassificationConfigProperty
-> DocumentClassificationConfigProperty
-> DocumentClassificationConfigProperty
set PropertyType "Mode" DocumentClassificationConfigProperty
newValue DocumentClassificationConfigProperty {Maybe (ValueList Text)
()
Value Text
haddock_workaround_ :: DocumentClassificationConfigProperty -> ()
labels :: DocumentClassificationConfigProperty -> Maybe (ValueList Text)
mode :: DocumentClassificationConfigProperty -> Value Text
haddock_workaround_ :: ()
labels :: Maybe (ValueList Text)
mode :: Value Text
..}
    = DocumentClassificationConfigProperty {mode :: Value Text
mode = PropertyType "Mode" DocumentClassificationConfigProperty
Value Text
newValue, Maybe (ValueList Text)
()
haddock_workaround_ :: ()
labels :: Maybe (ValueList Text)
haddock_workaround_ :: ()
labels :: Maybe (ValueList Text)
..}