module Stratosphere.Bedrock.DataSource (
module Exports, DataSource(..), mkDataSource
) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import {-# SOURCE #-} Stratosphere.Bedrock.DataSource.DataSourceConfigurationProperty as Exports
import {-# SOURCE #-} Stratosphere.Bedrock.DataSource.ServerSideEncryptionConfigurationProperty as Exports
import {-# SOURCE #-} Stratosphere.Bedrock.DataSource.VectorIngestionConfigurationProperty as Exports
import Stratosphere.ResourceProperties
import Stratosphere.Value
data DataSource
=
DataSource {DataSource -> ()
haddock_workaround_ :: (),
DataSource -> Maybe (Value Text)
dataDeletionPolicy :: (Prelude.Maybe (Value Prelude.Text)),
DataSource -> DataSourceConfigurationProperty
dataSourceConfiguration :: DataSourceConfigurationProperty,
DataSource -> Maybe (Value Text)
description :: (Prelude.Maybe (Value Prelude.Text)),
DataSource -> Value Text
knowledgeBaseId :: (Value Prelude.Text),
DataSource -> Value Text
name :: (Value Prelude.Text),
DataSource -> Maybe ServerSideEncryptionConfigurationProperty
serverSideEncryptionConfiguration :: (Prelude.Maybe ServerSideEncryptionConfigurationProperty),
DataSource -> Maybe VectorIngestionConfigurationProperty
vectorIngestionConfiguration :: (Prelude.Maybe VectorIngestionConfigurationProperty)}
deriving stock (DataSource -> DataSource -> Bool
(DataSource -> DataSource -> Bool)
-> (DataSource -> DataSource -> Bool) -> Eq DataSource
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: DataSource -> DataSource -> Bool
== :: DataSource -> DataSource -> Bool
$c/= :: DataSource -> DataSource -> Bool
/= :: DataSource -> DataSource -> Bool
Prelude.Eq, Int -> DataSource -> ShowS
[DataSource] -> ShowS
DataSource -> String
(Int -> DataSource -> ShowS)
-> (DataSource -> String)
-> ([DataSource] -> ShowS)
-> Show DataSource
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> DataSource -> ShowS
showsPrec :: Int -> DataSource -> ShowS
$cshow :: DataSource -> String
show :: DataSource -> String
$cshowList :: [DataSource] -> ShowS
showList :: [DataSource] -> ShowS
Prelude.Show)
mkDataSource ::
DataSourceConfigurationProperty
-> Value Prelude.Text -> Value Prelude.Text -> DataSource
mkDataSource :: DataSourceConfigurationProperty
-> Value Text -> Value Text -> DataSource
mkDataSource DataSourceConfigurationProperty
dataSourceConfiguration Value Text
knowledgeBaseId Value Text
name
= DataSource
{haddock_workaround_ :: ()
haddock_workaround_ = (),
dataSourceConfiguration :: DataSourceConfigurationProperty
dataSourceConfiguration = DataSourceConfigurationProperty
dataSourceConfiguration,
knowledgeBaseId :: Value Text
knowledgeBaseId = Value Text
knowledgeBaseId, name :: Value Text
name = Value Text
name,
dataDeletionPolicy :: Maybe (Value Text)
dataDeletionPolicy = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing,
description :: Maybe (Value Text)
description = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing,
serverSideEncryptionConfiguration :: Maybe ServerSideEncryptionConfigurationProperty
serverSideEncryptionConfiguration = Maybe ServerSideEncryptionConfigurationProperty
forall a. Maybe a
Prelude.Nothing,
vectorIngestionConfiguration :: Maybe VectorIngestionConfigurationProperty
vectorIngestionConfiguration = Maybe VectorIngestionConfigurationProperty
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties DataSource where
toResourceProperties :: DataSource -> ResourceProperties
toResourceProperties DataSource {Maybe (Value Text)
Maybe ServerSideEncryptionConfigurationProperty
Maybe VectorIngestionConfigurationProperty
()
Value Text
DataSourceConfigurationProperty
haddock_workaround_ :: DataSource -> ()
dataDeletionPolicy :: DataSource -> Maybe (Value Text)
dataSourceConfiguration :: DataSource -> DataSourceConfigurationProperty
description :: DataSource -> Maybe (Value Text)
knowledgeBaseId :: DataSource -> Value Text
name :: DataSource -> Value Text
serverSideEncryptionConfiguration :: DataSource -> Maybe ServerSideEncryptionConfigurationProperty
vectorIngestionConfiguration :: DataSource -> Maybe VectorIngestionConfigurationProperty
haddock_workaround_ :: ()
dataDeletionPolicy :: Maybe (Value Text)
dataSourceConfiguration :: DataSourceConfigurationProperty
description :: Maybe (Value Text)
knowledgeBaseId :: Value Text
name :: Value Text
serverSideEncryptionConfiguration :: Maybe ServerSideEncryptionConfigurationProperty
vectorIngestionConfiguration :: Maybe VectorIngestionConfigurationProperty
..}
= ResourceProperties
{awsType :: Text
awsType = Text
"AWS::Bedrock::DataSource",
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
"DataSourceConfiguration" Key -> DataSourceConfigurationProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
JSON..= DataSourceConfigurationProperty
dataSourceConfiguration,
Key
"KnowledgeBaseId" 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
knowledgeBaseId, Key
"Name" 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
name]
([Maybe (Key, Value)] -> [(Key, Value)]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
[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..=) Key
"DataDeletionPolicy" (Value Text -> (Key, Value))
-> Maybe (Value Text) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Text)
dataDeletionPolicy,
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..=) Key
"Description" (Value Text -> (Key, Value))
-> Maybe (Value Text) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Text)
description,
Key -> ServerSideEncryptionConfigurationProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"ServerSideEncryptionConfiguration"
(ServerSideEncryptionConfigurationProperty -> (Key, Value))
-> Maybe ServerSideEncryptionConfigurationProperty
-> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe ServerSideEncryptionConfigurationProperty
serverSideEncryptionConfiguration,
Key -> VectorIngestionConfigurationProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"VectorIngestionConfiguration"
(VectorIngestionConfigurationProperty -> (Key, Value))
-> Maybe VectorIngestionConfigurationProperty -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe VectorIngestionConfigurationProperty
vectorIngestionConfiguration]))}
instance JSON.ToJSON DataSource where
toJSON :: DataSource -> Value
toJSON DataSource {Maybe (Value Text)
Maybe ServerSideEncryptionConfigurationProperty
Maybe VectorIngestionConfigurationProperty
()
Value Text
DataSourceConfigurationProperty
haddock_workaround_ :: DataSource -> ()
dataDeletionPolicy :: DataSource -> Maybe (Value Text)
dataSourceConfiguration :: DataSource -> DataSourceConfigurationProperty
description :: DataSource -> Maybe (Value Text)
knowledgeBaseId :: DataSource -> Value Text
name :: DataSource -> Value Text
serverSideEncryptionConfiguration :: DataSource -> Maybe ServerSideEncryptionConfigurationProperty
vectorIngestionConfiguration :: DataSource -> Maybe VectorIngestionConfigurationProperty
haddock_workaround_ :: ()
dataDeletionPolicy :: Maybe (Value Text)
dataSourceConfiguration :: DataSourceConfigurationProperty
description :: Maybe (Value Text)
knowledgeBaseId :: Value Text
name :: Value Text
serverSideEncryptionConfiguration :: Maybe ServerSideEncryptionConfigurationProperty
vectorIngestionConfiguration :: Maybe VectorIngestionConfigurationProperty
..}
= [(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
"DataSourceConfiguration" Key -> DataSourceConfigurationProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
JSON..= DataSourceConfigurationProperty
dataSourceConfiguration,
Key
"KnowledgeBaseId" 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
knowledgeBaseId, Key
"Name" 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
name]
([Maybe (Key, Value)] -> [(Key, Value)]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
[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..=) Key
"DataDeletionPolicy" (Value Text -> (Key, Value))
-> Maybe (Value Text) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Text)
dataDeletionPolicy,
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..=) Key
"Description" (Value Text -> (Key, Value))
-> Maybe (Value Text) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Text)
description,
Key -> ServerSideEncryptionConfigurationProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"ServerSideEncryptionConfiguration"
(ServerSideEncryptionConfigurationProperty -> (Key, Value))
-> Maybe ServerSideEncryptionConfigurationProperty
-> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe ServerSideEncryptionConfigurationProperty
serverSideEncryptionConfiguration,
Key -> VectorIngestionConfigurationProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"VectorIngestionConfiguration"
(VectorIngestionConfigurationProperty -> (Key, Value))
-> Maybe VectorIngestionConfigurationProperty -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe VectorIngestionConfigurationProperty
vectorIngestionConfiguration])))
instance Property "DataDeletionPolicy" DataSource where
type PropertyType "DataDeletionPolicy" DataSource = Value Prelude.Text
set :: PropertyType "DataDeletionPolicy" DataSource
-> DataSource -> DataSource
set PropertyType "DataDeletionPolicy" DataSource
newValue DataSource {Maybe (Value Text)
Maybe ServerSideEncryptionConfigurationProperty
Maybe VectorIngestionConfigurationProperty
()
Value Text
DataSourceConfigurationProperty
haddock_workaround_ :: DataSource -> ()
dataDeletionPolicy :: DataSource -> Maybe (Value Text)
dataSourceConfiguration :: DataSource -> DataSourceConfigurationProperty
description :: DataSource -> Maybe (Value Text)
knowledgeBaseId :: DataSource -> Value Text
name :: DataSource -> Value Text
serverSideEncryptionConfiguration :: DataSource -> Maybe ServerSideEncryptionConfigurationProperty
vectorIngestionConfiguration :: DataSource -> Maybe VectorIngestionConfigurationProperty
haddock_workaround_ :: ()
dataDeletionPolicy :: Maybe (Value Text)
dataSourceConfiguration :: DataSourceConfigurationProperty
description :: Maybe (Value Text)
knowledgeBaseId :: Value Text
name :: Value Text
serverSideEncryptionConfiguration :: Maybe ServerSideEncryptionConfigurationProperty
vectorIngestionConfiguration :: Maybe VectorIngestionConfigurationProperty
..}
= DataSource {dataDeletionPolicy :: Maybe (Value Text)
dataDeletionPolicy = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "DataDeletionPolicy" DataSource
Value Text
newValue, Maybe (Value Text)
Maybe ServerSideEncryptionConfigurationProperty
Maybe VectorIngestionConfigurationProperty
()
Value Text
DataSourceConfigurationProperty
haddock_workaround_ :: ()
dataSourceConfiguration :: DataSourceConfigurationProperty
description :: Maybe (Value Text)
knowledgeBaseId :: Value Text
name :: Value Text
serverSideEncryptionConfiguration :: Maybe ServerSideEncryptionConfigurationProperty
vectorIngestionConfiguration :: Maybe VectorIngestionConfigurationProperty
haddock_workaround_ :: ()
dataSourceConfiguration :: DataSourceConfigurationProperty
description :: Maybe (Value Text)
knowledgeBaseId :: Value Text
name :: Value Text
serverSideEncryptionConfiguration :: Maybe ServerSideEncryptionConfigurationProperty
vectorIngestionConfiguration :: Maybe VectorIngestionConfigurationProperty
..}
instance Property "DataSourceConfiguration" DataSource where
type PropertyType "DataSourceConfiguration" DataSource = DataSourceConfigurationProperty
set :: PropertyType "DataSourceConfiguration" DataSource
-> DataSource -> DataSource
set PropertyType "DataSourceConfiguration" DataSource
newValue DataSource {Maybe (Value Text)
Maybe ServerSideEncryptionConfigurationProperty
Maybe VectorIngestionConfigurationProperty
()
Value Text
DataSourceConfigurationProperty
haddock_workaround_ :: DataSource -> ()
dataDeletionPolicy :: DataSource -> Maybe (Value Text)
dataSourceConfiguration :: DataSource -> DataSourceConfigurationProperty
description :: DataSource -> Maybe (Value Text)
knowledgeBaseId :: DataSource -> Value Text
name :: DataSource -> Value Text
serverSideEncryptionConfiguration :: DataSource -> Maybe ServerSideEncryptionConfigurationProperty
vectorIngestionConfiguration :: DataSource -> Maybe VectorIngestionConfigurationProperty
haddock_workaround_ :: ()
dataDeletionPolicy :: Maybe (Value Text)
dataSourceConfiguration :: DataSourceConfigurationProperty
description :: Maybe (Value Text)
knowledgeBaseId :: Value Text
name :: Value Text
serverSideEncryptionConfiguration :: Maybe ServerSideEncryptionConfigurationProperty
vectorIngestionConfiguration :: Maybe VectorIngestionConfigurationProperty
..}
= DataSource {dataSourceConfiguration :: DataSourceConfigurationProperty
dataSourceConfiguration = PropertyType "DataSourceConfiguration" DataSource
DataSourceConfigurationProperty
newValue, Maybe (Value Text)
Maybe ServerSideEncryptionConfigurationProperty
Maybe VectorIngestionConfigurationProperty
()
Value Text
haddock_workaround_ :: ()
dataDeletionPolicy :: Maybe (Value Text)
description :: Maybe (Value Text)
knowledgeBaseId :: Value Text
name :: Value Text
serverSideEncryptionConfiguration :: Maybe ServerSideEncryptionConfigurationProperty
vectorIngestionConfiguration :: Maybe VectorIngestionConfigurationProperty
haddock_workaround_ :: ()
dataDeletionPolicy :: Maybe (Value Text)
description :: Maybe (Value Text)
knowledgeBaseId :: Value Text
name :: Value Text
serverSideEncryptionConfiguration :: Maybe ServerSideEncryptionConfigurationProperty
vectorIngestionConfiguration :: Maybe VectorIngestionConfigurationProperty
..}
instance Property "Description" DataSource where
type PropertyType "Description" DataSource = Value Prelude.Text
set :: PropertyType "Description" DataSource -> DataSource -> DataSource
set PropertyType "Description" DataSource
newValue DataSource {Maybe (Value Text)
Maybe ServerSideEncryptionConfigurationProperty
Maybe VectorIngestionConfigurationProperty
()
Value Text
DataSourceConfigurationProperty
haddock_workaround_ :: DataSource -> ()
dataDeletionPolicy :: DataSource -> Maybe (Value Text)
dataSourceConfiguration :: DataSource -> DataSourceConfigurationProperty
description :: DataSource -> Maybe (Value Text)
knowledgeBaseId :: DataSource -> Value Text
name :: DataSource -> Value Text
serverSideEncryptionConfiguration :: DataSource -> Maybe ServerSideEncryptionConfigurationProperty
vectorIngestionConfiguration :: DataSource -> Maybe VectorIngestionConfigurationProperty
haddock_workaround_ :: ()
dataDeletionPolicy :: Maybe (Value Text)
dataSourceConfiguration :: DataSourceConfigurationProperty
description :: Maybe (Value Text)
knowledgeBaseId :: Value Text
name :: Value Text
serverSideEncryptionConfiguration :: Maybe ServerSideEncryptionConfigurationProperty
vectorIngestionConfiguration :: Maybe VectorIngestionConfigurationProperty
..}
= DataSource {description :: Maybe (Value Text)
description = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "Description" DataSource
Value Text
newValue, Maybe (Value Text)
Maybe ServerSideEncryptionConfigurationProperty
Maybe VectorIngestionConfigurationProperty
()
Value Text
DataSourceConfigurationProperty
haddock_workaround_ :: ()
dataDeletionPolicy :: Maybe (Value Text)
dataSourceConfiguration :: DataSourceConfigurationProperty
knowledgeBaseId :: Value Text
name :: Value Text
serverSideEncryptionConfiguration :: Maybe ServerSideEncryptionConfigurationProperty
vectorIngestionConfiguration :: Maybe VectorIngestionConfigurationProperty
haddock_workaround_ :: ()
dataDeletionPolicy :: Maybe (Value Text)
dataSourceConfiguration :: DataSourceConfigurationProperty
knowledgeBaseId :: Value Text
name :: Value Text
serverSideEncryptionConfiguration :: Maybe ServerSideEncryptionConfigurationProperty
vectorIngestionConfiguration :: Maybe VectorIngestionConfigurationProperty
..}
instance Property "KnowledgeBaseId" DataSource where
type PropertyType "KnowledgeBaseId" DataSource = Value Prelude.Text
set :: PropertyType "KnowledgeBaseId" DataSource
-> DataSource -> DataSource
set PropertyType "KnowledgeBaseId" DataSource
newValue DataSource {Maybe (Value Text)
Maybe ServerSideEncryptionConfigurationProperty
Maybe VectorIngestionConfigurationProperty
()
Value Text
DataSourceConfigurationProperty
haddock_workaround_ :: DataSource -> ()
dataDeletionPolicy :: DataSource -> Maybe (Value Text)
dataSourceConfiguration :: DataSource -> DataSourceConfigurationProperty
description :: DataSource -> Maybe (Value Text)
knowledgeBaseId :: DataSource -> Value Text
name :: DataSource -> Value Text
serverSideEncryptionConfiguration :: DataSource -> Maybe ServerSideEncryptionConfigurationProperty
vectorIngestionConfiguration :: DataSource -> Maybe VectorIngestionConfigurationProperty
haddock_workaround_ :: ()
dataDeletionPolicy :: Maybe (Value Text)
dataSourceConfiguration :: DataSourceConfigurationProperty
description :: Maybe (Value Text)
knowledgeBaseId :: Value Text
name :: Value Text
serverSideEncryptionConfiguration :: Maybe ServerSideEncryptionConfigurationProperty
vectorIngestionConfiguration :: Maybe VectorIngestionConfigurationProperty
..}
= DataSource {knowledgeBaseId :: Value Text
knowledgeBaseId = PropertyType "KnowledgeBaseId" DataSource
Value Text
newValue, Maybe (Value Text)
Maybe ServerSideEncryptionConfigurationProperty
Maybe VectorIngestionConfigurationProperty
()
Value Text
DataSourceConfigurationProperty
haddock_workaround_ :: ()
dataDeletionPolicy :: Maybe (Value Text)
dataSourceConfiguration :: DataSourceConfigurationProperty
description :: Maybe (Value Text)
name :: Value Text
serverSideEncryptionConfiguration :: Maybe ServerSideEncryptionConfigurationProperty
vectorIngestionConfiguration :: Maybe VectorIngestionConfigurationProperty
haddock_workaround_ :: ()
dataDeletionPolicy :: Maybe (Value Text)
dataSourceConfiguration :: DataSourceConfigurationProperty
description :: Maybe (Value Text)
name :: Value Text
serverSideEncryptionConfiguration :: Maybe ServerSideEncryptionConfigurationProperty
vectorIngestionConfiguration :: Maybe VectorIngestionConfigurationProperty
..}
instance Property "Name" DataSource where
type PropertyType "Name" DataSource = Value Prelude.Text
set :: PropertyType "Name" DataSource -> DataSource -> DataSource
set PropertyType "Name" DataSource
newValue DataSource {Maybe (Value Text)
Maybe ServerSideEncryptionConfigurationProperty
Maybe VectorIngestionConfigurationProperty
()
Value Text
DataSourceConfigurationProperty
haddock_workaround_ :: DataSource -> ()
dataDeletionPolicy :: DataSource -> Maybe (Value Text)
dataSourceConfiguration :: DataSource -> DataSourceConfigurationProperty
description :: DataSource -> Maybe (Value Text)
knowledgeBaseId :: DataSource -> Value Text
name :: DataSource -> Value Text
serverSideEncryptionConfiguration :: DataSource -> Maybe ServerSideEncryptionConfigurationProperty
vectorIngestionConfiguration :: DataSource -> Maybe VectorIngestionConfigurationProperty
haddock_workaround_ :: ()
dataDeletionPolicy :: Maybe (Value Text)
dataSourceConfiguration :: DataSourceConfigurationProperty
description :: Maybe (Value Text)
knowledgeBaseId :: Value Text
name :: Value Text
serverSideEncryptionConfiguration :: Maybe ServerSideEncryptionConfigurationProperty
vectorIngestionConfiguration :: Maybe VectorIngestionConfigurationProperty
..} = DataSource {name :: Value Text
name = PropertyType "Name" DataSource
Value Text
newValue, Maybe (Value Text)
Maybe ServerSideEncryptionConfigurationProperty
Maybe VectorIngestionConfigurationProperty
()
Value Text
DataSourceConfigurationProperty
haddock_workaround_ :: ()
dataDeletionPolicy :: Maybe (Value Text)
dataSourceConfiguration :: DataSourceConfigurationProperty
description :: Maybe (Value Text)
knowledgeBaseId :: Value Text
serverSideEncryptionConfiguration :: Maybe ServerSideEncryptionConfigurationProperty
vectorIngestionConfiguration :: Maybe VectorIngestionConfigurationProperty
haddock_workaround_ :: ()
dataDeletionPolicy :: Maybe (Value Text)
dataSourceConfiguration :: DataSourceConfigurationProperty
description :: Maybe (Value Text)
knowledgeBaseId :: Value Text
serverSideEncryptionConfiguration :: Maybe ServerSideEncryptionConfigurationProperty
vectorIngestionConfiguration :: Maybe VectorIngestionConfigurationProperty
..}
instance Property "ServerSideEncryptionConfiguration" DataSource where
type PropertyType "ServerSideEncryptionConfiguration" DataSource = ServerSideEncryptionConfigurationProperty
set :: PropertyType "ServerSideEncryptionConfiguration" DataSource
-> DataSource -> DataSource
set PropertyType "ServerSideEncryptionConfiguration" DataSource
newValue DataSource {Maybe (Value Text)
Maybe ServerSideEncryptionConfigurationProperty
Maybe VectorIngestionConfigurationProperty
()
Value Text
DataSourceConfigurationProperty
haddock_workaround_ :: DataSource -> ()
dataDeletionPolicy :: DataSource -> Maybe (Value Text)
dataSourceConfiguration :: DataSource -> DataSourceConfigurationProperty
description :: DataSource -> Maybe (Value Text)
knowledgeBaseId :: DataSource -> Value Text
name :: DataSource -> Value Text
serverSideEncryptionConfiguration :: DataSource -> Maybe ServerSideEncryptionConfigurationProperty
vectorIngestionConfiguration :: DataSource -> Maybe VectorIngestionConfigurationProperty
haddock_workaround_ :: ()
dataDeletionPolicy :: Maybe (Value Text)
dataSourceConfiguration :: DataSourceConfigurationProperty
description :: Maybe (Value Text)
knowledgeBaseId :: Value Text
name :: Value Text
serverSideEncryptionConfiguration :: Maybe ServerSideEncryptionConfigurationProperty
vectorIngestionConfiguration :: Maybe VectorIngestionConfigurationProperty
..}
= DataSource
{serverSideEncryptionConfiguration :: Maybe ServerSideEncryptionConfigurationProperty
serverSideEncryptionConfiguration = ServerSideEncryptionConfigurationProperty
-> Maybe ServerSideEncryptionConfigurationProperty
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "ServerSideEncryptionConfiguration" DataSource
ServerSideEncryptionConfigurationProperty
newValue, Maybe (Value Text)
Maybe VectorIngestionConfigurationProperty
()
Value Text
DataSourceConfigurationProperty
haddock_workaround_ :: ()
dataDeletionPolicy :: Maybe (Value Text)
dataSourceConfiguration :: DataSourceConfigurationProperty
description :: Maybe (Value Text)
knowledgeBaseId :: Value Text
name :: Value Text
vectorIngestionConfiguration :: Maybe VectorIngestionConfigurationProperty
haddock_workaround_ :: ()
dataDeletionPolicy :: Maybe (Value Text)
dataSourceConfiguration :: DataSourceConfigurationProperty
description :: Maybe (Value Text)
knowledgeBaseId :: Value Text
name :: Value Text
vectorIngestionConfiguration :: Maybe VectorIngestionConfigurationProperty
..}
instance Property "VectorIngestionConfiguration" DataSource where
type PropertyType "VectorIngestionConfiguration" DataSource = VectorIngestionConfigurationProperty
set :: PropertyType "VectorIngestionConfiguration" DataSource
-> DataSource -> DataSource
set PropertyType "VectorIngestionConfiguration" DataSource
newValue DataSource {Maybe (Value Text)
Maybe ServerSideEncryptionConfigurationProperty
Maybe VectorIngestionConfigurationProperty
()
Value Text
DataSourceConfigurationProperty
haddock_workaround_ :: DataSource -> ()
dataDeletionPolicy :: DataSource -> Maybe (Value Text)
dataSourceConfiguration :: DataSource -> DataSourceConfigurationProperty
description :: DataSource -> Maybe (Value Text)
knowledgeBaseId :: DataSource -> Value Text
name :: DataSource -> Value Text
serverSideEncryptionConfiguration :: DataSource -> Maybe ServerSideEncryptionConfigurationProperty
vectorIngestionConfiguration :: DataSource -> Maybe VectorIngestionConfigurationProperty
haddock_workaround_ :: ()
dataDeletionPolicy :: Maybe (Value Text)
dataSourceConfiguration :: DataSourceConfigurationProperty
description :: Maybe (Value Text)
knowledgeBaseId :: Value Text
name :: Value Text
serverSideEncryptionConfiguration :: Maybe ServerSideEncryptionConfigurationProperty
vectorIngestionConfiguration :: Maybe VectorIngestionConfigurationProperty
..}
= DataSource
{vectorIngestionConfiguration :: Maybe VectorIngestionConfigurationProperty
vectorIngestionConfiguration = VectorIngestionConfigurationProperty
-> Maybe VectorIngestionConfigurationProperty
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "VectorIngestionConfiguration" DataSource
VectorIngestionConfigurationProperty
newValue, Maybe (Value Text)
Maybe ServerSideEncryptionConfigurationProperty
()
Value Text
DataSourceConfigurationProperty
haddock_workaround_ :: ()
dataDeletionPolicy :: Maybe (Value Text)
dataSourceConfiguration :: DataSourceConfigurationProperty
description :: Maybe (Value Text)
knowledgeBaseId :: Value Text
name :: Value Text
serverSideEncryptionConfiguration :: Maybe ServerSideEncryptionConfigurationProperty
haddock_workaround_ :: ()
dataDeletionPolicy :: Maybe (Value Text)
dataSourceConfiguration :: DataSourceConfigurationProperty
description :: Maybe (Value Text)
knowledgeBaseId :: Value Text
name :: Value Text
serverSideEncryptionConfiguration :: Maybe ServerSideEncryptionConfigurationProperty
..}