packages feed

stratosphere-bedrock-1.0.0: gen/Stratosphere/Bedrock/DataSource/WebCrawlerConfigurationProperty.hs

module Stratosphere.Bedrock.DataSource.WebCrawlerConfigurationProperty (
        module Exports, WebCrawlerConfigurationProperty(..),
        mkWebCrawlerConfigurationProperty
    ) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import {-# SOURCE #-} Stratosphere.Bedrock.DataSource.WebCrawlerLimitsProperty as Exports
import Stratosphere.ResourceProperties
import Stratosphere.Value
data WebCrawlerConfigurationProperty
  = -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-datasource-webcrawlerconfiguration.html>
    WebCrawlerConfigurationProperty {haddock_workaround_ :: (),
                                     -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-datasource-webcrawlerconfiguration.html#cfn-bedrock-datasource-webcrawlerconfiguration-crawlerlimits>
                                     crawlerLimits :: (Prelude.Maybe WebCrawlerLimitsProperty),
                                     -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-datasource-webcrawlerconfiguration.html#cfn-bedrock-datasource-webcrawlerconfiguration-exclusionfilters>
                                     exclusionFilters :: (Prelude.Maybe (ValueList Prelude.Text)),
                                     -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-datasource-webcrawlerconfiguration.html#cfn-bedrock-datasource-webcrawlerconfiguration-inclusionfilters>
                                     inclusionFilters :: (Prelude.Maybe (ValueList Prelude.Text)),
                                     -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-datasource-webcrawlerconfiguration.html#cfn-bedrock-datasource-webcrawlerconfiguration-scope>
                                     scope :: (Prelude.Maybe (Value Prelude.Text)),
                                     -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-datasource-webcrawlerconfiguration.html#cfn-bedrock-datasource-webcrawlerconfiguration-useragent>
                                     userAgent :: (Prelude.Maybe (Value Prelude.Text)),
                                     -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-datasource-webcrawlerconfiguration.html#cfn-bedrock-datasource-webcrawlerconfiguration-useragentheader>
                                     userAgentHeader :: (Prelude.Maybe (Value Prelude.Text))}
  deriving stock (Prelude.Eq, Prelude.Show)
mkWebCrawlerConfigurationProperty ::
  WebCrawlerConfigurationProperty
mkWebCrawlerConfigurationProperty
  = WebCrawlerConfigurationProperty
      {haddock_workaround_ = (), crawlerLimits = Prelude.Nothing,
       exclusionFilters = Prelude.Nothing,
       inclusionFilters = Prelude.Nothing, scope = Prelude.Nothing,
       userAgent = Prelude.Nothing, userAgentHeader = Prelude.Nothing}
instance ToResourceProperties WebCrawlerConfigurationProperty where
  toResourceProperties WebCrawlerConfigurationProperty {..}
    = ResourceProperties
        {awsType = "AWS::Bedrock::DataSource.WebCrawlerConfiguration",
         supportsTags = Prelude.False,
         properties = Prelude.fromList
                        (Prelude.catMaybes
                           [(JSON..=) "CrawlerLimits" Prelude.<$> crawlerLimits,
                            (JSON..=) "ExclusionFilters" Prelude.<$> exclusionFilters,
                            (JSON..=) "InclusionFilters" Prelude.<$> inclusionFilters,
                            (JSON..=) "Scope" Prelude.<$> scope,
                            (JSON..=) "UserAgent" Prelude.<$> userAgent,
                            (JSON..=) "UserAgentHeader" Prelude.<$> userAgentHeader])}
instance JSON.ToJSON WebCrawlerConfigurationProperty where
  toJSON WebCrawlerConfigurationProperty {..}
    = JSON.object
        (Prelude.fromList
           (Prelude.catMaybes
              [(JSON..=) "CrawlerLimits" Prelude.<$> crawlerLimits,
               (JSON..=) "ExclusionFilters" Prelude.<$> exclusionFilters,
               (JSON..=) "InclusionFilters" Prelude.<$> inclusionFilters,
               (JSON..=) "Scope" Prelude.<$> scope,
               (JSON..=) "UserAgent" Prelude.<$> userAgent,
               (JSON..=) "UserAgentHeader" Prelude.<$> userAgentHeader]))
instance Property "CrawlerLimits" WebCrawlerConfigurationProperty where
  type PropertyType "CrawlerLimits" WebCrawlerConfigurationProperty = WebCrawlerLimitsProperty
  set newValue WebCrawlerConfigurationProperty {..}
    = WebCrawlerConfigurationProperty
        {crawlerLimits = Prelude.pure newValue, ..}
instance Property "ExclusionFilters" WebCrawlerConfigurationProperty where
  type PropertyType "ExclusionFilters" WebCrawlerConfigurationProperty = ValueList Prelude.Text
  set newValue WebCrawlerConfigurationProperty {..}
    = WebCrawlerConfigurationProperty
        {exclusionFilters = Prelude.pure newValue, ..}
instance Property "InclusionFilters" WebCrawlerConfigurationProperty where
  type PropertyType "InclusionFilters" WebCrawlerConfigurationProperty = ValueList Prelude.Text
  set newValue WebCrawlerConfigurationProperty {..}
    = WebCrawlerConfigurationProperty
        {inclusionFilters = Prelude.pure newValue, ..}
instance Property "Scope" WebCrawlerConfigurationProperty where
  type PropertyType "Scope" WebCrawlerConfigurationProperty = Value Prelude.Text
  set newValue WebCrawlerConfigurationProperty {..}
    = WebCrawlerConfigurationProperty
        {scope = Prelude.pure newValue, ..}
instance Property "UserAgent" WebCrawlerConfigurationProperty where
  type PropertyType "UserAgent" WebCrawlerConfigurationProperty = Value Prelude.Text
  set newValue WebCrawlerConfigurationProperty {..}
    = WebCrawlerConfigurationProperty
        {userAgent = Prelude.pure newValue, ..}
instance Property "UserAgentHeader" WebCrawlerConfigurationProperty where
  type PropertyType "UserAgentHeader" WebCrawlerConfigurationProperty = Value Prelude.Text
  set newValue WebCrawlerConfigurationProperty {..}
    = WebCrawlerConfigurationProperty
        {userAgentHeader = Prelude.pure newValue, ..}