module Stratosphere.Bedrock.DataSource.SharePointDataSourceConfigurationProperty (
module Exports, SharePointDataSourceConfigurationProperty(..),
mkSharePointDataSourceConfigurationProperty
) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import {-# SOURCE #-} Stratosphere.Bedrock.DataSource.SharePointCrawlerConfigurationProperty as Exports
import {-# SOURCE #-} Stratosphere.Bedrock.DataSource.SharePointSourceConfigurationProperty as Exports
import Stratosphere.ResourceProperties
data SharePointDataSourceConfigurationProperty
=
SharePointDataSourceConfigurationProperty {SharePointDataSourceConfigurationProperty -> ()
haddock_workaround_ :: (),
SharePointDataSourceConfigurationProperty
-> Maybe SharePointCrawlerConfigurationProperty
crawlerConfiguration :: (Prelude.Maybe SharePointCrawlerConfigurationProperty),
SharePointDataSourceConfigurationProperty
-> SharePointSourceConfigurationProperty
sourceConfiguration :: SharePointSourceConfigurationProperty}
deriving stock (SharePointDataSourceConfigurationProperty
-> SharePointDataSourceConfigurationProperty -> Bool
(SharePointDataSourceConfigurationProperty
-> SharePointDataSourceConfigurationProperty -> Bool)
-> (SharePointDataSourceConfigurationProperty
-> SharePointDataSourceConfigurationProperty -> Bool)
-> Eq SharePointDataSourceConfigurationProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: SharePointDataSourceConfigurationProperty
-> SharePointDataSourceConfigurationProperty -> Bool
== :: SharePointDataSourceConfigurationProperty
-> SharePointDataSourceConfigurationProperty -> Bool
$c/= :: SharePointDataSourceConfigurationProperty
-> SharePointDataSourceConfigurationProperty -> Bool
/= :: SharePointDataSourceConfigurationProperty
-> SharePointDataSourceConfigurationProperty -> Bool
Prelude.Eq, Int -> SharePointDataSourceConfigurationProperty -> ShowS
[SharePointDataSourceConfigurationProperty] -> ShowS
SharePointDataSourceConfigurationProperty -> String
(Int -> SharePointDataSourceConfigurationProperty -> ShowS)
-> (SharePointDataSourceConfigurationProperty -> String)
-> ([SharePointDataSourceConfigurationProperty] -> ShowS)
-> Show SharePointDataSourceConfigurationProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> SharePointDataSourceConfigurationProperty -> ShowS
showsPrec :: Int -> SharePointDataSourceConfigurationProperty -> ShowS
$cshow :: SharePointDataSourceConfigurationProperty -> String
show :: SharePointDataSourceConfigurationProperty -> String
$cshowList :: [SharePointDataSourceConfigurationProperty] -> ShowS
showList :: [SharePointDataSourceConfigurationProperty] -> ShowS
Prelude.Show)
mkSharePointDataSourceConfigurationProperty ::
SharePointSourceConfigurationProperty
-> SharePointDataSourceConfigurationProperty
mkSharePointDataSourceConfigurationProperty :: SharePointSourceConfigurationProperty
-> SharePointDataSourceConfigurationProperty
mkSharePointDataSourceConfigurationProperty SharePointSourceConfigurationProperty
sourceConfiguration
= SharePointDataSourceConfigurationProperty
{haddock_workaround_ :: ()
haddock_workaround_ = (),
sourceConfiguration :: SharePointSourceConfigurationProperty
sourceConfiguration = SharePointSourceConfigurationProperty
sourceConfiguration,
crawlerConfiguration :: Maybe SharePointCrawlerConfigurationProperty
crawlerConfiguration = Maybe SharePointCrawlerConfigurationProperty
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties SharePointDataSourceConfigurationProperty where
toResourceProperties :: SharePointDataSourceConfigurationProperty -> ResourceProperties
toResourceProperties SharePointDataSourceConfigurationProperty {Maybe SharePointCrawlerConfigurationProperty
()
SharePointSourceConfigurationProperty
haddock_workaround_ :: SharePointDataSourceConfigurationProperty -> ()
crawlerConfiguration :: SharePointDataSourceConfigurationProperty
-> Maybe SharePointCrawlerConfigurationProperty
sourceConfiguration :: SharePointDataSourceConfigurationProperty
-> SharePointSourceConfigurationProperty
haddock_workaround_ :: ()
crawlerConfiguration :: Maybe SharePointCrawlerConfigurationProperty
sourceConfiguration :: SharePointSourceConfigurationProperty
..}
= ResourceProperties
{awsType :: Text
awsType = Text
"AWS::Bedrock::DataSource.SharePointDataSourceConfiguration",
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
"SourceConfiguration" Key -> SharePointSourceConfigurationProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
JSON..= SharePointSourceConfigurationProperty
sourceConfiguration]
([Maybe (Key, Value)] -> [(Key, Value)]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
[Key -> SharePointCrawlerConfigurationProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"CrawlerConfiguration"
(SharePointCrawlerConfigurationProperty -> (Key, Value))
-> Maybe SharePointCrawlerConfigurationProperty
-> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe SharePointCrawlerConfigurationProperty
crawlerConfiguration]))}
instance JSON.ToJSON SharePointDataSourceConfigurationProperty where
toJSON :: SharePointDataSourceConfigurationProperty -> Value
toJSON SharePointDataSourceConfigurationProperty {Maybe SharePointCrawlerConfigurationProperty
()
SharePointSourceConfigurationProperty
haddock_workaround_ :: SharePointDataSourceConfigurationProperty -> ()
crawlerConfiguration :: SharePointDataSourceConfigurationProperty
-> Maybe SharePointCrawlerConfigurationProperty
sourceConfiguration :: SharePointDataSourceConfigurationProperty
-> SharePointSourceConfigurationProperty
haddock_workaround_ :: ()
crawlerConfiguration :: Maybe SharePointCrawlerConfigurationProperty
sourceConfiguration :: SharePointSourceConfigurationProperty
..}
= [(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
"SourceConfiguration" Key -> SharePointSourceConfigurationProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
JSON..= SharePointSourceConfigurationProperty
sourceConfiguration]
([Maybe (Key, Value)] -> [(Key, Value)]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
[Key -> SharePointCrawlerConfigurationProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"CrawlerConfiguration"
(SharePointCrawlerConfigurationProperty -> (Key, Value))
-> Maybe SharePointCrawlerConfigurationProperty
-> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe SharePointCrawlerConfigurationProperty
crawlerConfiguration])))
instance Property "CrawlerConfiguration" SharePointDataSourceConfigurationProperty where
type PropertyType "CrawlerConfiguration" SharePointDataSourceConfigurationProperty = SharePointCrawlerConfigurationProperty
set :: PropertyType
"CrawlerConfiguration" SharePointDataSourceConfigurationProperty
-> SharePointDataSourceConfigurationProperty
-> SharePointDataSourceConfigurationProperty
set PropertyType
"CrawlerConfiguration" SharePointDataSourceConfigurationProperty
newValue SharePointDataSourceConfigurationProperty {Maybe SharePointCrawlerConfigurationProperty
()
SharePointSourceConfigurationProperty
haddock_workaround_ :: SharePointDataSourceConfigurationProperty -> ()
crawlerConfiguration :: SharePointDataSourceConfigurationProperty
-> Maybe SharePointCrawlerConfigurationProperty
sourceConfiguration :: SharePointDataSourceConfigurationProperty
-> SharePointSourceConfigurationProperty
haddock_workaround_ :: ()
crawlerConfiguration :: Maybe SharePointCrawlerConfigurationProperty
sourceConfiguration :: SharePointSourceConfigurationProperty
..}
= SharePointDataSourceConfigurationProperty
{crawlerConfiguration :: Maybe SharePointCrawlerConfigurationProperty
crawlerConfiguration = SharePointCrawlerConfigurationProperty
-> Maybe SharePointCrawlerConfigurationProperty
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType
"CrawlerConfiguration" SharePointDataSourceConfigurationProperty
SharePointCrawlerConfigurationProperty
newValue, ()
SharePointSourceConfigurationProperty
haddock_workaround_ :: ()
sourceConfiguration :: SharePointSourceConfigurationProperty
haddock_workaround_ :: ()
sourceConfiguration :: SharePointSourceConfigurationProperty
..}
instance Property "SourceConfiguration" SharePointDataSourceConfigurationProperty where
type PropertyType "SourceConfiguration" SharePointDataSourceConfigurationProperty = SharePointSourceConfigurationProperty
set :: PropertyType
"SourceConfiguration" SharePointDataSourceConfigurationProperty
-> SharePointDataSourceConfigurationProperty
-> SharePointDataSourceConfigurationProperty
set PropertyType
"SourceConfiguration" SharePointDataSourceConfigurationProperty
newValue SharePointDataSourceConfigurationProperty {Maybe SharePointCrawlerConfigurationProperty
()
SharePointSourceConfigurationProperty
haddock_workaround_ :: SharePointDataSourceConfigurationProperty -> ()
crawlerConfiguration :: SharePointDataSourceConfigurationProperty
-> Maybe SharePointCrawlerConfigurationProperty
sourceConfiguration :: SharePointDataSourceConfigurationProperty
-> SharePointSourceConfigurationProperty
haddock_workaround_ :: ()
crawlerConfiguration :: Maybe SharePointCrawlerConfigurationProperty
sourceConfiguration :: SharePointSourceConfigurationProperty
..}
= SharePointDataSourceConfigurationProperty
{sourceConfiguration :: SharePointSourceConfigurationProperty
sourceConfiguration = PropertyType
"SourceConfiguration" SharePointDataSourceConfigurationProperty
SharePointSourceConfigurationProperty
newValue, Maybe SharePointCrawlerConfigurationProperty
()
haddock_workaround_ :: ()
crawlerConfiguration :: Maybe SharePointCrawlerConfigurationProperty
haddock_workaround_ :: ()
crawlerConfiguration :: Maybe SharePointCrawlerConfigurationProperty
..}