stratosphere-bedrock-1.0.0: gen/Stratosphere/Bedrock/DataSource/SharePointDataSourceConfigurationProperty.hs
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
= -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-datasource-sharepointdatasourceconfiguration.html>
SharePointDataSourceConfigurationProperty {haddock_workaround_ :: (),
-- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-datasource-sharepointdatasourceconfiguration.html#cfn-bedrock-datasource-sharepointdatasourceconfiguration-crawlerconfiguration>
crawlerConfiguration :: (Prelude.Maybe SharePointCrawlerConfigurationProperty),
-- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-datasource-sharepointdatasourceconfiguration.html#cfn-bedrock-datasource-sharepointdatasourceconfiguration-sourceconfiguration>
sourceConfiguration :: SharePointSourceConfigurationProperty}
deriving stock (Prelude.Eq, Prelude.Show)
mkSharePointDataSourceConfigurationProperty ::
SharePointSourceConfigurationProperty
-> SharePointDataSourceConfigurationProperty
mkSharePointDataSourceConfigurationProperty sourceConfiguration
= SharePointDataSourceConfigurationProperty
{haddock_workaround_ = (),
sourceConfiguration = sourceConfiguration,
crawlerConfiguration = Prelude.Nothing}
instance ToResourceProperties SharePointDataSourceConfigurationProperty where
toResourceProperties SharePointDataSourceConfigurationProperty {..}
= ResourceProperties
{awsType = "AWS::Bedrock::DataSource.SharePointDataSourceConfiguration",
supportsTags = Prelude.False,
properties = Prelude.fromList
((Prelude.<>)
["SourceConfiguration" JSON..= sourceConfiguration]
(Prelude.catMaybes
[(JSON..=) "CrawlerConfiguration"
Prelude.<$> crawlerConfiguration]))}
instance JSON.ToJSON SharePointDataSourceConfigurationProperty where
toJSON SharePointDataSourceConfigurationProperty {..}
= JSON.object
(Prelude.fromList
((Prelude.<>)
["SourceConfiguration" JSON..= sourceConfiguration]
(Prelude.catMaybes
[(JSON..=) "CrawlerConfiguration"
Prelude.<$> crawlerConfiguration])))
instance Property "CrawlerConfiguration" SharePointDataSourceConfigurationProperty where
type PropertyType "CrawlerConfiguration" SharePointDataSourceConfigurationProperty = SharePointCrawlerConfigurationProperty
set newValue SharePointDataSourceConfigurationProperty {..}
= SharePointDataSourceConfigurationProperty
{crawlerConfiguration = Prelude.pure newValue, ..}
instance Property "SourceConfiguration" SharePointDataSourceConfigurationProperty where
type PropertyType "SourceConfiguration" SharePointDataSourceConfigurationProperty = SharePointSourceConfigurationProperty
set newValue SharePointDataSourceConfigurationProperty {..}
= SharePointDataSourceConfigurationProperty
{sourceConfiguration = newValue, ..}