module Stratosphere.Wisdom.KnowledgeBase.SemanticChunkingConfigurationProperty (
SemanticChunkingConfigurationProperty(..),
mkSemanticChunkingConfigurationProperty
) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data SemanticChunkingConfigurationProperty
=
SemanticChunkingConfigurationProperty {SemanticChunkingConfigurationProperty -> ()
haddock_workaround_ :: (),
SemanticChunkingConfigurationProperty -> Value Double
breakpointPercentileThreshold :: (Value Prelude.Double),
SemanticChunkingConfigurationProperty -> Value Double
bufferSize :: (Value Prelude.Double),
SemanticChunkingConfigurationProperty -> Value Double
maxTokens :: (Value Prelude.Double)}
deriving stock (SemanticChunkingConfigurationProperty
-> SemanticChunkingConfigurationProperty -> Bool
(SemanticChunkingConfigurationProperty
-> SemanticChunkingConfigurationProperty -> Bool)
-> (SemanticChunkingConfigurationProperty
-> SemanticChunkingConfigurationProperty -> Bool)
-> Eq SemanticChunkingConfigurationProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: SemanticChunkingConfigurationProperty
-> SemanticChunkingConfigurationProperty -> Bool
== :: SemanticChunkingConfigurationProperty
-> SemanticChunkingConfigurationProperty -> Bool
$c/= :: SemanticChunkingConfigurationProperty
-> SemanticChunkingConfigurationProperty -> Bool
/= :: SemanticChunkingConfigurationProperty
-> SemanticChunkingConfigurationProperty -> Bool
Prelude.Eq, Int -> SemanticChunkingConfigurationProperty -> ShowS
[SemanticChunkingConfigurationProperty] -> ShowS
SemanticChunkingConfigurationProperty -> String
(Int -> SemanticChunkingConfigurationProperty -> ShowS)
-> (SemanticChunkingConfigurationProperty -> String)
-> ([SemanticChunkingConfigurationProperty] -> ShowS)
-> Show SemanticChunkingConfigurationProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> SemanticChunkingConfigurationProperty -> ShowS
showsPrec :: Int -> SemanticChunkingConfigurationProperty -> ShowS
$cshow :: SemanticChunkingConfigurationProperty -> String
show :: SemanticChunkingConfigurationProperty -> String
$cshowList :: [SemanticChunkingConfigurationProperty] -> ShowS
showList :: [SemanticChunkingConfigurationProperty] -> ShowS
Prelude.Show)
mkSemanticChunkingConfigurationProperty ::
Value Prelude.Double
-> Value Prelude.Double
-> Value Prelude.Double -> SemanticChunkingConfigurationProperty
mkSemanticChunkingConfigurationProperty :: Value Double
-> Value Double
-> Value Double
-> SemanticChunkingConfigurationProperty
mkSemanticChunkingConfigurationProperty
Value Double
breakpointPercentileThreshold
Value Double
bufferSize
Value Double
maxTokens
= SemanticChunkingConfigurationProperty
{haddock_workaround_ :: ()
haddock_workaround_ = (),
breakpointPercentileThreshold :: Value Double
breakpointPercentileThreshold = Value Double
breakpointPercentileThreshold,
bufferSize :: Value Double
bufferSize = Value Double
bufferSize, maxTokens :: Value Double
maxTokens = Value Double
maxTokens}
instance ToResourceProperties SemanticChunkingConfigurationProperty where
toResourceProperties :: SemanticChunkingConfigurationProperty -> ResourceProperties
toResourceProperties SemanticChunkingConfigurationProperty {()
Value Double
haddock_workaround_ :: SemanticChunkingConfigurationProperty -> ()
breakpointPercentileThreshold :: SemanticChunkingConfigurationProperty -> Value Double
bufferSize :: SemanticChunkingConfigurationProperty -> Value Double
maxTokens :: SemanticChunkingConfigurationProperty -> Value Double
haddock_workaround_ :: ()
breakpointPercentileThreshold :: Value Double
bufferSize :: Value Double
maxTokens :: Value Double
..}
= ResourceProperties
{awsType :: Text
awsType = Text
"AWS::Wisdom::KnowledgeBase.SemanticChunkingConfiguration",
supportsTags :: Bool
supportsTags = Bool
Prelude.False,
properties :: Object
properties = [Key
"BreakpointPercentileThreshold"
Key -> Value Double -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
JSON..= Value Double
breakpointPercentileThreshold,
Key
"BufferSize" Key -> Value Double -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
JSON..= Value Double
bufferSize, Key
"MaxTokens" Key -> Value Double -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
JSON..= Value Double
maxTokens]}
instance JSON.ToJSON SemanticChunkingConfigurationProperty where
toJSON :: SemanticChunkingConfigurationProperty -> Value
toJSON SemanticChunkingConfigurationProperty {()
Value Double
haddock_workaround_ :: SemanticChunkingConfigurationProperty -> ()
breakpointPercentileThreshold :: SemanticChunkingConfigurationProperty -> Value Double
bufferSize :: SemanticChunkingConfigurationProperty -> Value Double
maxTokens :: SemanticChunkingConfigurationProperty -> Value Double
haddock_workaround_ :: ()
breakpointPercentileThreshold :: Value Double
bufferSize :: Value Double
maxTokens :: Value Double
..}
= [(Key, Value)] -> Value
JSON.object
[Key
"BreakpointPercentileThreshold"
Key -> Value Double -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
JSON..= Value Double
breakpointPercentileThreshold,
Key
"BufferSize" Key -> Value Double -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
JSON..= Value Double
bufferSize, Key
"MaxTokens" Key -> Value Double -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
JSON..= Value Double
maxTokens]
instance Property "BreakpointPercentileThreshold" SemanticChunkingConfigurationProperty where
type PropertyType "BreakpointPercentileThreshold" SemanticChunkingConfigurationProperty = Value Prelude.Double
set :: PropertyType
"BreakpointPercentileThreshold"
SemanticChunkingConfigurationProperty
-> SemanticChunkingConfigurationProperty
-> SemanticChunkingConfigurationProperty
set PropertyType
"BreakpointPercentileThreshold"
SemanticChunkingConfigurationProperty
newValue SemanticChunkingConfigurationProperty {()
Value Double
haddock_workaround_ :: SemanticChunkingConfigurationProperty -> ()
breakpointPercentileThreshold :: SemanticChunkingConfigurationProperty -> Value Double
bufferSize :: SemanticChunkingConfigurationProperty -> Value Double
maxTokens :: SemanticChunkingConfigurationProperty -> Value Double
haddock_workaround_ :: ()
breakpointPercentileThreshold :: Value Double
bufferSize :: Value Double
maxTokens :: Value Double
..}
= SemanticChunkingConfigurationProperty
{breakpointPercentileThreshold :: Value Double
breakpointPercentileThreshold = PropertyType
"BreakpointPercentileThreshold"
SemanticChunkingConfigurationProperty
Value Double
newValue, ()
Value Double
haddock_workaround_ :: ()
bufferSize :: Value Double
maxTokens :: Value Double
haddock_workaround_ :: ()
bufferSize :: Value Double
maxTokens :: Value Double
..}
instance Property "BufferSize" SemanticChunkingConfigurationProperty where
type PropertyType "BufferSize" SemanticChunkingConfigurationProperty = Value Prelude.Double
set :: PropertyType "BufferSize" SemanticChunkingConfigurationProperty
-> SemanticChunkingConfigurationProperty
-> SemanticChunkingConfigurationProperty
set PropertyType "BufferSize" SemanticChunkingConfigurationProperty
newValue SemanticChunkingConfigurationProperty {()
Value Double
haddock_workaround_ :: SemanticChunkingConfigurationProperty -> ()
breakpointPercentileThreshold :: SemanticChunkingConfigurationProperty -> Value Double
bufferSize :: SemanticChunkingConfigurationProperty -> Value Double
maxTokens :: SemanticChunkingConfigurationProperty -> Value Double
haddock_workaround_ :: ()
breakpointPercentileThreshold :: Value Double
bufferSize :: Value Double
maxTokens :: Value Double
..}
= SemanticChunkingConfigurationProperty {bufferSize :: Value Double
bufferSize = PropertyType "BufferSize" SemanticChunkingConfigurationProperty
Value Double
newValue, ()
Value Double
haddock_workaround_ :: ()
breakpointPercentileThreshold :: Value Double
maxTokens :: Value Double
haddock_workaround_ :: ()
breakpointPercentileThreshold :: Value Double
maxTokens :: Value Double
..}
instance Property "MaxTokens" SemanticChunkingConfigurationProperty where
type PropertyType "MaxTokens" SemanticChunkingConfigurationProperty = Value Prelude.Double
set :: PropertyType "MaxTokens" SemanticChunkingConfigurationProperty
-> SemanticChunkingConfigurationProperty
-> SemanticChunkingConfigurationProperty
set PropertyType "MaxTokens" SemanticChunkingConfigurationProperty
newValue SemanticChunkingConfigurationProperty {()
Value Double
haddock_workaround_ :: SemanticChunkingConfigurationProperty -> ()
breakpointPercentileThreshold :: SemanticChunkingConfigurationProperty -> Value Double
bufferSize :: SemanticChunkingConfigurationProperty -> Value Double
maxTokens :: SemanticChunkingConfigurationProperty -> Value Double
haddock_workaround_ :: ()
breakpointPercentileThreshold :: Value Double
bufferSize :: Value Double
maxTokens :: Value Double
..}
= SemanticChunkingConfigurationProperty {maxTokens :: Value Double
maxTokens = PropertyType "MaxTokens" SemanticChunkingConfigurationProperty
Value Double
newValue, ()
Value Double
haddock_workaround_ :: ()
breakpointPercentileThreshold :: Value Double
bufferSize :: Value Double
haddock_workaround_ :: ()
breakpointPercentileThreshold :: Value Double
bufferSize :: Value Double
..}