module Stratosphere.Bedrock.DataSource.SharePointCrawlerConfigurationProperty (
        module Exports, SharePointCrawlerConfigurationProperty(..),
        mkSharePointCrawlerConfigurationProperty
    ) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import {-# SOURCE #-} Stratosphere.Bedrock.DataSource.CrawlFilterConfigurationProperty as Exports
import Stratosphere.ResourceProperties
data SharePointCrawlerConfigurationProperty
  = -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-datasource-sharepointcrawlerconfiguration.html>
    SharePointCrawlerConfigurationProperty {SharePointCrawlerConfigurationProperty -> ()
haddock_workaround_ :: (),
                                            -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-datasource-sharepointcrawlerconfiguration.html#cfn-bedrock-datasource-sharepointcrawlerconfiguration-filterconfiguration>
                                            SharePointCrawlerConfigurationProperty
-> Maybe CrawlFilterConfigurationProperty
filterConfiguration :: (Prelude.Maybe CrawlFilterConfigurationProperty)}
  deriving stock (SharePointCrawlerConfigurationProperty
-> SharePointCrawlerConfigurationProperty -> Bool
(SharePointCrawlerConfigurationProperty
 -> SharePointCrawlerConfigurationProperty -> Bool)
-> (SharePointCrawlerConfigurationProperty
    -> SharePointCrawlerConfigurationProperty -> Bool)
-> Eq SharePointCrawlerConfigurationProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: SharePointCrawlerConfigurationProperty
-> SharePointCrawlerConfigurationProperty -> Bool
== :: SharePointCrawlerConfigurationProperty
-> SharePointCrawlerConfigurationProperty -> Bool
$c/= :: SharePointCrawlerConfigurationProperty
-> SharePointCrawlerConfigurationProperty -> Bool
/= :: SharePointCrawlerConfigurationProperty
-> SharePointCrawlerConfigurationProperty -> Bool
Prelude.Eq, Int -> SharePointCrawlerConfigurationProperty -> ShowS
[SharePointCrawlerConfigurationProperty] -> ShowS
SharePointCrawlerConfigurationProperty -> String
(Int -> SharePointCrawlerConfigurationProperty -> ShowS)
-> (SharePointCrawlerConfigurationProperty -> String)
-> ([SharePointCrawlerConfigurationProperty] -> ShowS)
-> Show SharePointCrawlerConfigurationProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> SharePointCrawlerConfigurationProperty -> ShowS
showsPrec :: Int -> SharePointCrawlerConfigurationProperty -> ShowS
$cshow :: SharePointCrawlerConfigurationProperty -> String
show :: SharePointCrawlerConfigurationProperty -> String
$cshowList :: [SharePointCrawlerConfigurationProperty] -> ShowS
showList :: [SharePointCrawlerConfigurationProperty] -> ShowS
Prelude.Show)
mkSharePointCrawlerConfigurationProperty ::
  SharePointCrawlerConfigurationProperty
mkSharePointCrawlerConfigurationProperty :: SharePointCrawlerConfigurationProperty
mkSharePointCrawlerConfigurationProperty
  = SharePointCrawlerConfigurationProperty
      {haddock_workaround_ :: ()
haddock_workaround_ = (), filterConfiguration :: Maybe CrawlFilterConfigurationProperty
filterConfiguration = Maybe CrawlFilterConfigurationProperty
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties SharePointCrawlerConfigurationProperty where
  toResourceProperties :: SharePointCrawlerConfigurationProperty -> ResourceProperties
toResourceProperties SharePointCrawlerConfigurationProperty {Maybe CrawlFilterConfigurationProperty
()
haddock_workaround_ :: SharePointCrawlerConfigurationProperty -> ()
filterConfiguration :: SharePointCrawlerConfigurationProperty
-> Maybe CrawlFilterConfigurationProperty
haddock_workaround_ :: ()
filterConfiguration :: Maybe CrawlFilterConfigurationProperty
..}
    = ResourceProperties
        {awsType :: Text
awsType = Text
"AWS::Bedrock::DataSource.SharePointCrawlerConfiguration",
         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 -> CrawlFilterConfigurationProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"FilterConfiguration" (CrawlFilterConfigurationProperty -> (Key, Value))
-> Maybe CrawlFilterConfigurationProperty -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe CrawlFilterConfigurationProperty
filterConfiguration])}
instance JSON.ToJSON SharePointCrawlerConfigurationProperty where
  toJSON :: SharePointCrawlerConfigurationProperty -> Value
toJSON SharePointCrawlerConfigurationProperty {Maybe CrawlFilterConfigurationProperty
()
haddock_workaround_ :: SharePointCrawlerConfigurationProperty -> ()
filterConfiguration :: SharePointCrawlerConfigurationProperty
-> Maybe CrawlFilterConfigurationProperty
haddock_workaround_ :: ()
filterConfiguration :: Maybe CrawlFilterConfigurationProperty
..}
    = [(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 -> CrawlFilterConfigurationProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"FilterConfiguration" (CrawlFilterConfigurationProperty -> (Key, Value))
-> Maybe CrawlFilterConfigurationProperty -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe CrawlFilterConfigurationProperty
filterConfiguration]))
instance Property "FilterConfiguration" SharePointCrawlerConfigurationProperty where
  type PropertyType "FilterConfiguration" SharePointCrawlerConfigurationProperty = CrawlFilterConfigurationProperty
  set :: PropertyType
  "FilterConfiguration" SharePointCrawlerConfigurationProperty
-> SharePointCrawlerConfigurationProperty
-> SharePointCrawlerConfigurationProperty
set PropertyType
  "FilterConfiguration" SharePointCrawlerConfigurationProperty
newValue SharePointCrawlerConfigurationProperty {Maybe CrawlFilterConfigurationProperty
()
haddock_workaround_ :: SharePointCrawlerConfigurationProperty -> ()
filterConfiguration :: SharePointCrawlerConfigurationProperty
-> Maybe CrawlFilterConfigurationProperty
haddock_workaround_ :: ()
filterConfiguration :: Maybe CrawlFilterConfigurationProperty
..}
    = SharePointCrawlerConfigurationProperty
        {filterConfiguration :: Maybe CrawlFilterConfigurationProperty
filterConfiguration = CrawlFilterConfigurationProperty
-> Maybe CrawlFilterConfigurationProperty
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType
  "FilterConfiguration" SharePointCrawlerConfigurationProperty
CrawlFilterConfigurationProperty
newValue, ()
haddock_workaround_ :: ()
haddock_workaround_ :: ()
..}