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