module Stratosphere.QBusiness.DataSource.DocumentEnrichmentConfigurationProperty (
        module Exports, DocumentEnrichmentConfigurationProperty(..),
        mkDocumentEnrichmentConfigurationProperty
    ) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import {-# SOURCE #-} Stratosphere.QBusiness.DataSource.HookConfigurationProperty as Exports
import {-# SOURCE #-} Stratosphere.QBusiness.DataSource.InlineDocumentEnrichmentConfigurationProperty as Exports
import Stratosphere.ResourceProperties
data DocumentEnrichmentConfigurationProperty
  = -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-qbusiness-datasource-documentenrichmentconfiguration.html>
    DocumentEnrichmentConfigurationProperty {DocumentEnrichmentConfigurationProperty -> ()
haddock_workaround_ :: (),
                                             -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-qbusiness-datasource-documentenrichmentconfiguration.html#cfn-qbusiness-datasource-documentenrichmentconfiguration-inlineconfigurations>
                                             DocumentEnrichmentConfigurationProperty
-> Maybe [InlineDocumentEnrichmentConfigurationProperty]
inlineConfigurations :: (Prelude.Maybe [InlineDocumentEnrichmentConfigurationProperty]),
                                             -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-qbusiness-datasource-documentenrichmentconfiguration.html#cfn-qbusiness-datasource-documentenrichmentconfiguration-postextractionhookconfiguration>
                                             DocumentEnrichmentConfigurationProperty
-> Maybe HookConfigurationProperty
postExtractionHookConfiguration :: (Prelude.Maybe HookConfigurationProperty),
                                             -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-qbusiness-datasource-documentenrichmentconfiguration.html#cfn-qbusiness-datasource-documentenrichmentconfiguration-preextractionhookconfiguration>
                                             DocumentEnrichmentConfigurationProperty
-> Maybe HookConfigurationProperty
preExtractionHookConfiguration :: (Prelude.Maybe HookConfigurationProperty)}
  deriving stock (DocumentEnrichmentConfigurationProperty
-> DocumentEnrichmentConfigurationProperty -> Bool
(DocumentEnrichmentConfigurationProperty
 -> DocumentEnrichmentConfigurationProperty -> Bool)
-> (DocumentEnrichmentConfigurationProperty
    -> DocumentEnrichmentConfigurationProperty -> Bool)
-> Eq DocumentEnrichmentConfigurationProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: DocumentEnrichmentConfigurationProperty
-> DocumentEnrichmentConfigurationProperty -> Bool
== :: DocumentEnrichmentConfigurationProperty
-> DocumentEnrichmentConfigurationProperty -> Bool
$c/= :: DocumentEnrichmentConfigurationProperty
-> DocumentEnrichmentConfigurationProperty -> Bool
/= :: DocumentEnrichmentConfigurationProperty
-> DocumentEnrichmentConfigurationProperty -> Bool
Prelude.Eq, Int -> DocumentEnrichmentConfigurationProperty -> ShowS
[DocumentEnrichmentConfigurationProperty] -> ShowS
DocumentEnrichmentConfigurationProperty -> String
(Int -> DocumentEnrichmentConfigurationProperty -> ShowS)
-> (DocumentEnrichmentConfigurationProperty -> String)
-> ([DocumentEnrichmentConfigurationProperty] -> ShowS)
-> Show DocumentEnrichmentConfigurationProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> DocumentEnrichmentConfigurationProperty -> ShowS
showsPrec :: Int -> DocumentEnrichmentConfigurationProperty -> ShowS
$cshow :: DocumentEnrichmentConfigurationProperty -> String
show :: DocumentEnrichmentConfigurationProperty -> String
$cshowList :: [DocumentEnrichmentConfigurationProperty] -> ShowS
showList :: [DocumentEnrichmentConfigurationProperty] -> ShowS
Prelude.Show)
mkDocumentEnrichmentConfigurationProperty ::
  DocumentEnrichmentConfigurationProperty
mkDocumentEnrichmentConfigurationProperty :: DocumentEnrichmentConfigurationProperty
mkDocumentEnrichmentConfigurationProperty
  = DocumentEnrichmentConfigurationProperty
      {haddock_workaround_ :: ()
haddock_workaround_ = (), inlineConfigurations :: Maybe [InlineDocumentEnrichmentConfigurationProperty]
inlineConfigurations = Maybe [InlineDocumentEnrichmentConfigurationProperty]
forall a. Maybe a
Prelude.Nothing,
       postExtractionHookConfiguration :: Maybe HookConfigurationProperty
postExtractionHookConfiguration = Maybe HookConfigurationProperty
forall a. Maybe a
Prelude.Nothing,
       preExtractionHookConfiguration :: Maybe HookConfigurationProperty
preExtractionHookConfiguration = Maybe HookConfigurationProperty
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties DocumentEnrichmentConfigurationProperty where
  toResourceProperties :: DocumentEnrichmentConfigurationProperty -> ResourceProperties
toResourceProperties DocumentEnrichmentConfigurationProperty {Maybe [InlineDocumentEnrichmentConfigurationProperty]
Maybe HookConfigurationProperty
()
haddock_workaround_ :: DocumentEnrichmentConfigurationProperty -> ()
inlineConfigurations :: DocumentEnrichmentConfigurationProperty
-> Maybe [InlineDocumentEnrichmentConfigurationProperty]
postExtractionHookConfiguration :: DocumentEnrichmentConfigurationProperty
-> Maybe HookConfigurationProperty
preExtractionHookConfiguration :: DocumentEnrichmentConfigurationProperty
-> Maybe HookConfigurationProperty
haddock_workaround_ :: ()
inlineConfigurations :: Maybe [InlineDocumentEnrichmentConfigurationProperty]
postExtractionHookConfiguration :: Maybe HookConfigurationProperty
preExtractionHookConfiguration :: Maybe HookConfigurationProperty
..}
    = ResourceProperties
        {awsType :: Text
awsType = Text
"AWS::QBusiness::DataSource.DocumentEnrichmentConfiguration",
         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
-> [InlineDocumentEnrichmentConfigurationProperty] -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"InlineConfigurations" ([InlineDocumentEnrichmentConfigurationProperty] -> (Key, Value))
-> Maybe [InlineDocumentEnrichmentConfigurationProperty]
-> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe [InlineDocumentEnrichmentConfigurationProperty]
inlineConfigurations,
                            Key -> HookConfigurationProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"PostExtractionHookConfiguration"
                              (HookConfigurationProperty -> (Key, Value))
-> Maybe HookConfigurationProperty -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe HookConfigurationProperty
postExtractionHookConfiguration,
                            Key -> HookConfigurationProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"PreExtractionHookConfiguration"
                              (HookConfigurationProperty -> (Key, Value))
-> Maybe HookConfigurationProperty -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe HookConfigurationProperty
preExtractionHookConfiguration])}
instance JSON.ToJSON DocumentEnrichmentConfigurationProperty where
  toJSON :: DocumentEnrichmentConfigurationProperty -> Value
toJSON DocumentEnrichmentConfigurationProperty {Maybe [InlineDocumentEnrichmentConfigurationProperty]
Maybe HookConfigurationProperty
()
haddock_workaround_ :: DocumentEnrichmentConfigurationProperty -> ()
inlineConfigurations :: DocumentEnrichmentConfigurationProperty
-> Maybe [InlineDocumentEnrichmentConfigurationProperty]
postExtractionHookConfiguration :: DocumentEnrichmentConfigurationProperty
-> Maybe HookConfigurationProperty
preExtractionHookConfiguration :: DocumentEnrichmentConfigurationProperty
-> Maybe HookConfigurationProperty
haddock_workaround_ :: ()
inlineConfigurations :: Maybe [InlineDocumentEnrichmentConfigurationProperty]
postExtractionHookConfiguration :: Maybe HookConfigurationProperty
preExtractionHookConfiguration :: Maybe HookConfigurationProperty
..}
    = [(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
-> [InlineDocumentEnrichmentConfigurationProperty] -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"InlineConfigurations" ([InlineDocumentEnrichmentConfigurationProperty] -> (Key, Value))
-> Maybe [InlineDocumentEnrichmentConfigurationProperty]
-> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe [InlineDocumentEnrichmentConfigurationProperty]
inlineConfigurations,
               Key -> HookConfigurationProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"PostExtractionHookConfiguration"
                 (HookConfigurationProperty -> (Key, Value))
-> Maybe HookConfigurationProperty -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe HookConfigurationProperty
postExtractionHookConfiguration,
               Key -> HookConfigurationProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"PreExtractionHookConfiguration"
                 (HookConfigurationProperty -> (Key, Value))
-> Maybe HookConfigurationProperty -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe HookConfigurationProperty
preExtractionHookConfiguration]))
instance Property "InlineConfigurations" DocumentEnrichmentConfigurationProperty where
  type PropertyType "InlineConfigurations" DocumentEnrichmentConfigurationProperty = [InlineDocumentEnrichmentConfigurationProperty]
  set :: PropertyType
  "InlineConfigurations" DocumentEnrichmentConfigurationProperty
-> DocumentEnrichmentConfigurationProperty
-> DocumentEnrichmentConfigurationProperty
set PropertyType
  "InlineConfigurations" DocumentEnrichmentConfigurationProperty
newValue DocumentEnrichmentConfigurationProperty {Maybe [InlineDocumentEnrichmentConfigurationProperty]
Maybe HookConfigurationProperty
()
haddock_workaround_ :: DocumentEnrichmentConfigurationProperty -> ()
inlineConfigurations :: DocumentEnrichmentConfigurationProperty
-> Maybe [InlineDocumentEnrichmentConfigurationProperty]
postExtractionHookConfiguration :: DocumentEnrichmentConfigurationProperty
-> Maybe HookConfigurationProperty
preExtractionHookConfiguration :: DocumentEnrichmentConfigurationProperty
-> Maybe HookConfigurationProperty
haddock_workaround_ :: ()
inlineConfigurations :: Maybe [InlineDocumentEnrichmentConfigurationProperty]
postExtractionHookConfiguration :: Maybe HookConfigurationProperty
preExtractionHookConfiguration :: Maybe HookConfigurationProperty
..}
    = DocumentEnrichmentConfigurationProperty
        {inlineConfigurations :: Maybe [InlineDocumentEnrichmentConfigurationProperty]
inlineConfigurations = [InlineDocumentEnrichmentConfigurationProperty]
-> Maybe [InlineDocumentEnrichmentConfigurationProperty]
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure [InlineDocumentEnrichmentConfigurationProperty]
PropertyType
  "InlineConfigurations" DocumentEnrichmentConfigurationProperty
newValue, Maybe HookConfigurationProperty
()
haddock_workaround_ :: ()
postExtractionHookConfiguration :: Maybe HookConfigurationProperty
preExtractionHookConfiguration :: Maybe HookConfigurationProperty
haddock_workaround_ :: ()
postExtractionHookConfiguration :: Maybe HookConfigurationProperty
preExtractionHookConfiguration :: Maybe HookConfigurationProperty
..}
instance Property "PostExtractionHookConfiguration" DocumentEnrichmentConfigurationProperty where
  type PropertyType "PostExtractionHookConfiguration" DocumentEnrichmentConfigurationProperty = HookConfigurationProperty
  set :: PropertyType
  "PostExtractionHookConfiguration"
  DocumentEnrichmentConfigurationProperty
-> DocumentEnrichmentConfigurationProperty
-> DocumentEnrichmentConfigurationProperty
set PropertyType
  "PostExtractionHookConfiguration"
  DocumentEnrichmentConfigurationProperty
newValue DocumentEnrichmentConfigurationProperty {Maybe [InlineDocumentEnrichmentConfigurationProperty]
Maybe HookConfigurationProperty
()
haddock_workaround_ :: DocumentEnrichmentConfigurationProperty -> ()
inlineConfigurations :: DocumentEnrichmentConfigurationProperty
-> Maybe [InlineDocumentEnrichmentConfigurationProperty]
postExtractionHookConfiguration :: DocumentEnrichmentConfigurationProperty
-> Maybe HookConfigurationProperty
preExtractionHookConfiguration :: DocumentEnrichmentConfigurationProperty
-> Maybe HookConfigurationProperty
haddock_workaround_ :: ()
inlineConfigurations :: Maybe [InlineDocumentEnrichmentConfigurationProperty]
postExtractionHookConfiguration :: Maybe HookConfigurationProperty
preExtractionHookConfiguration :: Maybe HookConfigurationProperty
..}
    = DocumentEnrichmentConfigurationProperty
        {postExtractionHookConfiguration :: Maybe HookConfigurationProperty
postExtractionHookConfiguration = HookConfigurationProperty -> Maybe HookConfigurationProperty
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType
  "PostExtractionHookConfiguration"
  DocumentEnrichmentConfigurationProperty
HookConfigurationProperty
newValue, Maybe [InlineDocumentEnrichmentConfigurationProperty]
Maybe HookConfigurationProperty
()
haddock_workaround_ :: ()
inlineConfigurations :: Maybe [InlineDocumentEnrichmentConfigurationProperty]
preExtractionHookConfiguration :: Maybe HookConfigurationProperty
haddock_workaround_ :: ()
inlineConfigurations :: Maybe [InlineDocumentEnrichmentConfigurationProperty]
preExtractionHookConfiguration :: Maybe HookConfigurationProperty
..}
instance Property "PreExtractionHookConfiguration" DocumentEnrichmentConfigurationProperty where
  type PropertyType "PreExtractionHookConfiguration" DocumentEnrichmentConfigurationProperty = HookConfigurationProperty
  set :: PropertyType
  "PreExtractionHookConfiguration"
  DocumentEnrichmentConfigurationProperty
-> DocumentEnrichmentConfigurationProperty
-> DocumentEnrichmentConfigurationProperty
set PropertyType
  "PreExtractionHookConfiguration"
  DocumentEnrichmentConfigurationProperty
newValue DocumentEnrichmentConfigurationProperty {Maybe [InlineDocumentEnrichmentConfigurationProperty]
Maybe HookConfigurationProperty
()
haddock_workaround_ :: DocumentEnrichmentConfigurationProperty -> ()
inlineConfigurations :: DocumentEnrichmentConfigurationProperty
-> Maybe [InlineDocumentEnrichmentConfigurationProperty]
postExtractionHookConfiguration :: DocumentEnrichmentConfigurationProperty
-> Maybe HookConfigurationProperty
preExtractionHookConfiguration :: DocumentEnrichmentConfigurationProperty
-> Maybe HookConfigurationProperty
haddock_workaround_ :: ()
inlineConfigurations :: Maybe [InlineDocumentEnrichmentConfigurationProperty]
postExtractionHookConfiguration :: Maybe HookConfigurationProperty
preExtractionHookConfiguration :: Maybe HookConfigurationProperty
..}
    = DocumentEnrichmentConfigurationProperty
        {preExtractionHookConfiguration :: Maybe HookConfigurationProperty
preExtractionHookConfiguration = HookConfigurationProperty -> Maybe HookConfigurationProperty
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType
  "PreExtractionHookConfiguration"
  DocumentEnrichmentConfigurationProperty
HookConfigurationProperty
newValue, Maybe [InlineDocumentEnrichmentConfigurationProperty]
Maybe HookConfigurationProperty
()
haddock_workaround_ :: ()
inlineConfigurations :: Maybe [InlineDocumentEnrichmentConfigurationProperty]
postExtractionHookConfiguration :: Maybe HookConfigurationProperty
haddock_workaround_ :: ()
inlineConfigurations :: Maybe [InlineDocumentEnrichmentConfigurationProperty]
postExtractionHookConfiguration :: Maybe HookConfigurationProperty
..}