module Stratosphere.Wisdom.KnowledgeBase.VectorIngestionConfigurationProperty (
module Exports, VectorIngestionConfigurationProperty(..),
mkVectorIngestionConfigurationProperty
) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import {-# SOURCE #-} Stratosphere.Wisdom.KnowledgeBase.ChunkingConfigurationProperty as Exports
import {-# SOURCE #-} Stratosphere.Wisdom.KnowledgeBase.ParsingConfigurationProperty as Exports
import Stratosphere.ResourceProperties
data VectorIngestionConfigurationProperty
=
VectorIngestionConfigurationProperty {VectorIngestionConfigurationProperty -> ()
haddock_workaround_ :: (),
VectorIngestionConfigurationProperty
-> Maybe ChunkingConfigurationProperty
chunkingConfiguration :: (Prelude.Maybe ChunkingConfigurationProperty),
VectorIngestionConfigurationProperty
-> Maybe ParsingConfigurationProperty
parsingConfiguration :: (Prelude.Maybe ParsingConfigurationProperty)}
deriving stock (VectorIngestionConfigurationProperty
-> VectorIngestionConfigurationProperty -> Bool
(VectorIngestionConfigurationProperty
-> VectorIngestionConfigurationProperty -> Bool)
-> (VectorIngestionConfigurationProperty
-> VectorIngestionConfigurationProperty -> Bool)
-> Eq VectorIngestionConfigurationProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: VectorIngestionConfigurationProperty
-> VectorIngestionConfigurationProperty -> Bool
== :: VectorIngestionConfigurationProperty
-> VectorIngestionConfigurationProperty -> Bool
$c/= :: VectorIngestionConfigurationProperty
-> VectorIngestionConfigurationProperty -> Bool
/= :: VectorIngestionConfigurationProperty
-> VectorIngestionConfigurationProperty -> Bool
Prelude.Eq, Int -> VectorIngestionConfigurationProperty -> ShowS
[VectorIngestionConfigurationProperty] -> ShowS
VectorIngestionConfigurationProperty -> String
(Int -> VectorIngestionConfigurationProperty -> ShowS)
-> (VectorIngestionConfigurationProperty -> String)
-> ([VectorIngestionConfigurationProperty] -> ShowS)
-> Show VectorIngestionConfigurationProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> VectorIngestionConfigurationProperty -> ShowS
showsPrec :: Int -> VectorIngestionConfigurationProperty -> ShowS
$cshow :: VectorIngestionConfigurationProperty -> String
show :: VectorIngestionConfigurationProperty -> String
$cshowList :: [VectorIngestionConfigurationProperty] -> ShowS
showList :: [VectorIngestionConfigurationProperty] -> ShowS
Prelude.Show)
mkVectorIngestionConfigurationProperty ::
VectorIngestionConfigurationProperty
mkVectorIngestionConfigurationProperty :: VectorIngestionConfigurationProperty
mkVectorIngestionConfigurationProperty
= VectorIngestionConfigurationProperty
{haddock_workaround_ :: ()
haddock_workaround_ = (), chunkingConfiguration :: Maybe ChunkingConfigurationProperty
chunkingConfiguration = Maybe ChunkingConfigurationProperty
forall a. Maybe a
Prelude.Nothing,
parsingConfiguration :: Maybe ParsingConfigurationProperty
parsingConfiguration = Maybe ParsingConfigurationProperty
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties VectorIngestionConfigurationProperty where
toResourceProperties :: VectorIngestionConfigurationProperty -> ResourceProperties
toResourceProperties VectorIngestionConfigurationProperty {Maybe ParsingConfigurationProperty
Maybe ChunkingConfigurationProperty
()
haddock_workaround_ :: VectorIngestionConfigurationProperty -> ()
chunkingConfiguration :: VectorIngestionConfigurationProperty
-> Maybe ChunkingConfigurationProperty
parsingConfiguration :: VectorIngestionConfigurationProperty
-> Maybe ParsingConfigurationProperty
haddock_workaround_ :: ()
chunkingConfiguration :: Maybe ChunkingConfigurationProperty
parsingConfiguration :: Maybe ParsingConfigurationProperty
..}
= ResourceProperties
{awsType :: Text
awsType = Text
"AWS::Wisdom::KnowledgeBase.VectorIngestionConfiguration",
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 -> ChunkingConfigurationProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"ChunkingConfiguration"
(ChunkingConfigurationProperty -> (Key, Value))
-> Maybe ChunkingConfigurationProperty -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe ChunkingConfigurationProperty
chunkingConfiguration,
Key -> ParsingConfigurationProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"ParsingConfiguration"
(ParsingConfigurationProperty -> (Key, Value))
-> Maybe ParsingConfigurationProperty -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe ParsingConfigurationProperty
parsingConfiguration])}
instance JSON.ToJSON VectorIngestionConfigurationProperty where
toJSON :: VectorIngestionConfigurationProperty -> Value
toJSON VectorIngestionConfigurationProperty {Maybe ParsingConfigurationProperty
Maybe ChunkingConfigurationProperty
()
haddock_workaround_ :: VectorIngestionConfigurationProperty -> ()
chunkingConfiguration :: VectorIngestionConfigurationProperty
-> Maybe ChunkingConfigurationProperty
parsingConfiguration :: VectorIngestionConfigurationProperty
-> Maybe ParsingConfigurationProperty
haddock_workaround_ :: ()
chunkingConfiguration :: Maybe ChunkingConfigurationProperty
parsingConfiguration :: Maybe ParsingConfigurationProperty
..}
= [(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 -> ChunkingConfigurationProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"ChunkingConfiguration"
(ChunkingConfigurationProperty -> (Key, Value))
-> Maybe ChunkingConfigurationProperty -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe ChunkingConfigurationProperty
chunkingConfiguration,
Key -> ParsingConfigurationProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"ParsingConfiguration"
(ParsingConfigurationProperty -> (Key, Value))
-> Maybe ParsingConfigurationProperty -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe ParsingConfigurationProperty
parsingConfiguration]))
instance Property "ChunkingConfiguration" VectorIngestionConfigurationProperty where
type PropertyType "ChunkingConfiguration" VectorIngestionConfigurationProperty = ChunkingConfigurationProperty
set :: PropertyType
"ChunkingConfiguration" VectorIngestionConfigurationProperty
-> VectorIngestionConfigurationProperty
-> VectorIngestionConfigurationProperty
set PropertyType
"ChunkingConfiguration" VectorIngestionConfigurationProperty
newValue VectorIngestionConfigurationProperty {Maybe ParsingConfigurationProperty
Maybe ChunkingConfigurationProperty
()
haddock_workaround_ :: VectorIngestionConfigurationProperty -> ()
chunkingConfiguration :: VectorIngestionConfigurationProperty
-> Maybe ChunkingConfigurationProperty
parsingConfiguration :: VectorIngestionConfigurationProperty
-> Maybe ParsingConfigurationProperty
haddock_workaround_ :: ()
chunkingConfiguration :: Maybe ChunkingConfigurationProperty
parsingConfiguration :: Maybe ParsingConfigurationProperty
..}
= VectorIngestionConfigurationProperty
{chunkingConfiguration :: Maybe ChunkingConfigurationProperty
chunkingConfiguration = ChunkingConfigurationProperty
-> Maybe ChunkingConfigurationProperty
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType
"ChunkingConfiguration" VectorIngestionConfigurationProperty
ChunkingConfigurationProperty
newValue, Maybe ParsingConfigurationProperty
()
haddock_workaround_ :: ()
parsingConfiguration :: Maybe ParsingConfigurationProperty
haddock_workaround_ :: ()
parsingConfiguration :: Maybe ParsingConfigurationProperty
..}
instance Property "ParsingConfiguration" VectorIngestionConfigurationProperty where
type PropertyType "ParsingConfiguration" VectorIngestionConfigurationProperty = ParsingConfigurationProperty
set :: PropertyType
"ParsingConfiguration" VectorIngestionConfigurationProperty
-> VectorIngestionConfigurationProperty
-> VectorIngestionConfigurationProperty
set PropertyType
"ParsingConfiguration" VectorIngestionConfigurationProperty
newValue VectorIngestionConfigurationProperty {Maybe ParsingConfigurationProperty
Maybe ChunkingConfigurationProperty
()
haddock_workaround_ :: VectorIngestionConfigurationProperty -> ()
chunkingConfiguration :: VectorIngestionConfigurationProperty
-> Maybe ChunkingConfigurationProperty
parsingConfiguration :: VectorIngestionConfigurationProperty
-> Maybe ParsingConfigurationProperty
haddock_workaround_ :: ()
chunkingConfiguration :: Maybe ChunkingConfigurationProperty
parsingConfiguration :: Maybe ParsingConfigurationProperty
..}
= VectorIngestionConfigurationProperty
{parsingConfiguration :: Maybe ParsingConfigurationProperty
parsingConfiguration = ParsingConfigurationProperty -> Maybe ParsingConfigurationProperty
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType
"ParsingConfiguration" VectorIngestionConfigurationProperty
ParsingConfigurationProperty
newValue, Maybe ChunkingConfigurationProperty
()
haddock_workaround_ :: ()
chunkingConfiguration :: Maybe ChunkingConfigurationProperty
haddock_workaround_ :: ()
chunkingConfiguration :: Maybe ChunkingConfigurationProperty
..}