module Stratosphere.Bedrock.KnowledgeBase.VectorKnowledgeBaseConfigurationProperty (
module Exports, VectorKnowledgeBaseConfigurationProperty(..),
mkVectorKnowledgeBaseConfigurationProperty
) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import {-# SOURCE #-} Stratosphere.Bedrock.KnowledgeBase.EmbeddingModelConfigurationProperty as Exports
import {-# SOURCE #-} Stratosphere.Bedrock.KnowledgeBase.SupplementalDataStorageConfigurationProperty as Exports
import Stratosphere.ResourceProperties
import Stratosphere.Value
data VectorKnowledgeBaseConfigurationProperty
=
VectorKnowledgeBaseConfigurationProperty {VectorKnowledgeBaseConfigurationProperty -> ()
haddock_workaround_ :: (),
VectorKnowledgeBaseConfigurationProperty -> Value Text
embeddingModelArn :: (Value Prelude.Text),
VectorKnowledgeBaseConfigurationProperty
-> Maybe EmbeddingModelConfigurationProperty
embeddingModelConfiguration :: (Prelude.Maybe EmbeddingModelConfigurationProperty),
VectorKnowledgeBaseConfigurationProperty
-> Maybe SupplementalDataStorageConfigurationProperty
supplementalDataStorageConfiguration :: (Prelude.Maybe SupplementalDataStorageConfigurationProperty)}
deriving stock (VectorKnowledgeBaseConfigurationProperty
-> VectorKnowledgeBaseConfigurationProperty -> Bool
(VectorKnowledgeBaseConfigurationProperty
-> VectorKnowledgeBaseConfigurationProperty -> Bool)
-> (VectorKnowledgeBaseConfigurationProperty
-> VectorKnowledgeBaseConfigurationProperty -> Bool)
-> Eq VectorKnowledgeBaseConfigurationProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: VectorKnowledgeBaseConfigurationProperty
-> VectorKnowledgeBaseConfigurationProperty -> Bool
== :: VectorKnowledgeBaseConfigurationProperty
-> VectorKnowledgeBaseConfigurationProperty -> Bool
$c/= :: VectorKnowledgeBaseConfigurationProperty
-> VectorKnowledgeBaseConfigurationProperty -> Bool
/= :: VectorKnowledgeBaseConfigurationProperty
-> VectorKnowledgeBaseConfigurationProperty -> Bool
Prelude.Eq, Int -> VectorKnowledgeBaseConfigurationProperty -> ShowS
[VectorKnowledgeBaseConfigurationProperty] -> ShowS
VectorKnowledgeBaseConfigurationProperty -> String
(Int -> VectorKnowledgeBaseConfigurationProperty -> ShowS)
-> (VectorKnowledgeBaseConfigurationProperty -> String)
-> ([VectorKnowledgeBaseConfigurationProperty] -> ShowS)
-> Show VectorKnowledgeBaseConfigurationProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> VectorKnowledgeBaseConfigurationProperty -> ShowS
showsPrec :: Int -> VectorKnowledgeBaseConfigurationProperty -> ShowS
$cshow :: VectorKnowledgeBaseConfigurationProperty -> String
show :: VectorKnowledgeBaseConfigurationProperty -> String
$cshowList :: [VectorKnowledgeBaseConfigurationProperty] -> ShowS
showList :: [VectorKnowledgeBaseConfigurationProperty] -> ShowS
Prelude.Show)
mkVectorKnowledgeBaseConfigurationProperty ::
Value Prelude.Text -> VectorKnowledgeBaseConfigurationProperty
mkVectorKnowledgeBaseConfigurationProperty :: Value Text -> VectorKnowledgeBaseConfigurationProperty
mkVectorKnowledgeBaseConfigurationProperty Value Text
embeddingModelArn
= VectorKnowledgeBaseConfigurationProperty
{haddock_workaround_ :: ()
haddock_workaround_ = (), embeddingModelArn :: Value Text
embeddingModelArn = Value Text
embeddingModelArn,
embeddingModelConfiguration :: Maybe EmbeddingModelConfigurationProperty
embeddingModelConfiguration = Maybe EmbeddingModelConfigurationProperty
forall a. Maybe a
Prelude.Nothing,
supplementalDataStorageConfiguration :: Maybe SupplementalDataStorageConfigurationProperty
supplementalDataStorageConfiguration = Maybe SupplementalDataStorageConfigurationProperty
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties VectorKnowledgeBaseConfigurationProperty where
toResourceProperties :: VectorKnowledgeBaseConfigurationProperty -> ResourceProperties
toResourceProperties VectorKnowledgeBaseConfigurationProperty {Maybe EmbeddingModelConfigurationProperty
Maybe SupplementalDataStorageConfigurationProperty
()
Value Text
haddock_workaround_ :: VectorKnowledgeBaseConfigurationProperty -> ()
embeddingModelArn :: VectorKnowledgeBaseConfigurationProperty -> Value Text
embeddingModelConfiguration :: VectorKnowledgeBaseConfigurationProperty
-> Maybe EmbeddingModelConfigurationProperty
supplementalDataStorageConfiguration :: VectorKnowledgeBaseConfigurationProperty
-> Maybe SupplementalDataStorageConfigurationProperty
haddock_workaround_ :: ()
embeddingModelArn :: Value Text
embeddingModelConfiguration :: Maybe EmbeddingModelConfigurationProperty
supplementalDataStorageConfiguration :: Maybe SupplementalDataStorageConfigurationProperty
..}
= ResourceProperties
{awsType :: Text
awsType = Text
"AWS::Bedrock::KnowledgeBase.VectorKnowledgeBaseConfiguration",
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
"EmbeddingModelArn" 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
embeddingModelArn]
([Maybe (Key, Value)] -> [(Key, Value)]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
[Key -> EmbeddingModelConfigurationProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"EmbeddingModelConfiguration"
(EmbeddingModelConfigurationProperty -> (Key, Value))
-> Maybe EmbeddingModelConfigurationProperty -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe EmbeddingModelConfigurationProperty
embeddingModelConfiguration,
Key -> SupplementalDataStorageConfigurationProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"SupplementalDataStorageConfiguration"
(SupplementalDataStorageConfigurationProperty -> (Key, Value))
-> Maybe SupplementalDataStorageConfigurationProperty
-> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe SupplementalDataStorageConfigurationProperty
supplementalDataStorageConfiguration]))}
instance JSON.ToJSON VectorKnowledgeBaseConfigurationProperty where
toJSON :: VectorKnowledgeBaseConfigurationProperty -> Value
toJSON VectorKnowledgeBaseConfigurationProperty {Maybe EmbeddingModelConfigurationProperty
Maybe SupplementalDataStorageConfigurationProperty
()
Value Text
haddock_workaround_ :: VectorKnowledgeBaseConfigurationProperty -> ()
embeddingModelArn :: VectorKnowledgeBaseConfigurationProperty -> Value Text
embeddingModelConfiguration :: VectorKnowledgeBaseConfigurationProperty
-> Maybe EmbeddingModelConfigurationProperty
supplementalDataStorageConfiguration :: VectorKnowledgeBaseConfigurationProperty
-> Maybe SupplementalDataStorageConfigurationProperty
haddock_workaround_ :: ()
embeddingModelArn :: Value Text
embeddingModelConfiguration :: Maybe EmbeddingModelConfigurationProperty
supplementalDataStorageConfiguration :: Maybe SupplementalDataStorageConfigurationProperty
..}
= [(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
"EmbeddingModelArn" 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
embeddingModelArn]
([Maybe (Key, Value)] -> [(Key, Value)]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
[Key -> EmbeddingModelConfigurationProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"EmbeddingModelConfiguration"
(EmbeddingModelConfigurationProperty -> (Key, Value))
-> Maybe EmbeddingModelConfigurationProperty -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe EmbeddingModelConfigurationProperty
embeddingModelConfiguration,
Key -> SupplementalDataStorageConfigurationProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"SupplementalDataStorageConfiguration"
(SupplementalDataStorageConfigurationProperty -> (Key, Value))
-> Maybe SupplementalDataStorageConfigurationProperty
-> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe SupplementalDataStorageConfigurationProperty
supplementalDataStorageConfiguration])))
instance Property "EmbeddingModelArn" VectorKnowledgeBaseConfigurationProperty where
type PropertyType "EmbeddingModelArn" VectorKnowledgeBaseConfigurationProperty = Value Prelude.Text
set :: PropertyType
"EmbeddingModelArn" VectorKnowledgeBaseConfigurationProperty
-> VectorKnowledgeBaseConfigurationProperty
-> VectorKnowledgeBaseConfigurationProperty
set PropertyType
"EmbeddingModelArn" VectorKnowledgeBaseConfigurationProperty
newValue VectorKnowledgeBaseConfigurationProperty {Maybe EmbeddingModelConfigurationProperty
Maybe SupplementalDataStorageConfigurationProperty
()
Value Text
haddock_workaround_ :: VectorKnowledgeBaseConfigurationProperty -> ()
embeddingModelArn :: VectorKnowledgeBaseConfigurationProperty -> Value Text
embeddingModelConfiguration :: VectorKnowledgeBaseConfigurationProperty
-> Maybe EmbeddingModelConfigurationProperty
supplementalDataStorageConfiguration :: VectorKnowledgeBaseConfigurationProperty
-> Maybe SupplementalDataStorageConfigurationProperty
haddock_workaround_ :: ()
embeddingModelArn :: Value Text
embeddingModelConfiguration :: Maybe EmbeddingModelConfigurationProperty
supplementalDataStorageConfiguration :: Maybe SupplementalDataStorageConfigurationProperty
..}
= VectorKnowledgeBaseConfigurationProperty
{embeddingModelArn :: Value Text
embeddingModelArn = PropertyType
"EmbeddingModelArn" VectorKnowledgeBaseConfigurationProperty
Value Text
newValue, Maybe EmbeddingModelConfigurationProperty
Maybe SupplementalDataStorageConfigurationProperty
()
haddock_workaround_ :: ()
embeddingModelConfiguration :: Maybe EmbeddingModelConfigurationProperty
supplementalDataStorageConfiguration :: Maybe SupplementalDataStorageConfigurationProperty
haddock_workaround_ :: ()
embeddingModelConfiguration :: Maybe EmbeddingModelConfigurationProperty
supplementalDataStorageConfiguration :: Maybe SupplementalDataStorageConfigurationProperty
..}
instance Property "EmbeddingModelConfiguration" VectorKnowledgeBaseConfigurationProperty where
type PropertyType "EmbeddingModelConfiguration" VectorKnowledgeBaseConfigurationProperty = EmbeddingModelConfigurationProperty
set :: PropertyType
"EmbeddingModelConfiguration"
VectorKnowledgeBaseConfigurationProperty
-> VectorKnowledgeBaseConfigurationProperty
-> VectorKnowledgeBaseConfigurationProperty
set PropertyType
"EmbeddingModelConfiguration"
VectorKnowledgeBaseConfigurationProperty
newValue VectorKnowledgeBaseConfigurationProperty {Maybe EmbeddingModelConfigurationProperty
Maybe SupplementalDataStorageConfigurationProperty
()
Value Text
haddock_workaround_ :: VectorKnowledgeBaseConfigurationProperty -> ()
embeddingModelArn :: VectorKnowledgeBaseConfigurationProperty -> Value Text
embeddingModelConfiguration :: VectorKnowledgeBaseConfigurationProperty
-> Maybe EmbeddingModelConfigurationProperty
supplementalDataStorageConfiguration :: VectorKnowledgeBaseConfigurationProperty
-> Maybe SupplementalDataStorageConfigurationProperty
haddock_workaround_ :: ()
embeddingModelArn :: Value Text
embeddingModelConfiguration :: Maybe EmbeddingModelConfigurationProperty
supplementalDataStorageConfiguration :: Maybe SupplementalDataStorageConfigurationProperty
..}
= VectorKnowledgeBaseConfigurationProperty
{embeddingModelConfiguration :: Maybe EmbeddingModelConfigurationProperty
embeddingModelConfiguration = EmbeddingModelConfigurationProperty
-> Maybe EmbeddingModelConfigurationProperty
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType
"EmbeddingModelConfiguration"
VectorKnowledgeBaseConfigurationProperty
EmbeddingModelConfigurationProperty
newValue, Maybe SupplementalDataStorageConfigurationProperty
()
Value Text
haddock_workaround_ :: ()
embeddingModelArn :: Value Text
supplementalDataStorageConfiguration :: Maybe SupplementalDataStorageConfigurationProperty
haddock_workaround_ :: ()
embeddingModelArn :: Value Text
supplementalDataStorageConfiguration :: Maybe SupplementalDataStorageConfigurationProperty
..}
instance Property "SupplementalDataStorageConfiguration" VectorKnowledgeBaseConfigurationProperty where
type PropertyType "SupplementalDataStorageConfiguration" VectorKnowledgeBaseConfigurationProperty = SupplementalDataStorageConfigurationProperty
set :: PropertyType
"SupplementalDataStorageConfiguration"
VectorKnowledgeBaseConfigurationProperty
-> VectorKnowledgeBaseConfigurationProperty
-> VectorKnowledgeBaseConfigurationProperty
set PropertyType
"SupplementalDataStorageConfiguration"
VectorKnowledgeBaseConfigurationProperty
newValue VectorKnowledgeBaseConfigurationProperty {Maybe EmbeddingModelConfigurationProperty
Maybe SupplementalDataStorageConfigurationProperty
()
Value Text
haddock_workaround_ :: VectorKnowledgeBaseConfigurationProperty -> ()
embeddingModelArn :: VectorKnowledgeBaseConfigurationProperty -> Value Text
embeddingModelConfiguration :: VectorKnowledgeBaseConfigurationProperty
-> Maybe EmbeddingModelConfigurationProperty
supplementalDataStorageConfiguration :: VectorKnowledgeBaseConfigurationProperty
-> Maybe SupplementalDataStorageConfigurationProperty
haddock_workaround_ :: ()
embeddingModelArn :: Value Text
embeddingModelConfiguration :: Maybe EmbeddingModelConfigurationProperty
supplementalDataStorageConfiguration :: Maybe SupplementalDataStorageConfigurationProperty
..}
= VectorKnowledgeBaseConfigurationProperty
{supplementalDataStorageConfiguration :: Maybe SupplementalDataStorageConfigurationProperty
supplementalDataStorageConfiguration = SupplementalDataStorageConfigurationProperty
-> Maybe SupplementalDataStorageConfigurationProperty
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType
"SupplementalDataStorageConfiguration"
VectorKnowledgeBaseConfigurationProperty
SupplementalDataStorageConfigurationProperty
newValue, Maybe EmbeddingModelConfigurationProperty
()
Value Text
haddock_workaround_ :: ()
embeddingModelArn :: Value Text
embeddingModelConfiguration :: Maybe EmbeddingModelConfigurationProperty
haddock_workaround_ :: ()
embeddingModelArn :: Value Text
embeddingModelConfiguration :: Maybe EmbeddingModelConfigurationProperty
..}