module Stratosphere.Bedrock.DataSource.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
  = -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-datasource-semanticchunkingconfiguration.html>
    SemanticChunkingConfigurationProperty {SemanticChunkingConfigurationProperty -> ()
haddock_workaround_ :: (),
                                           -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-datasource-semanticchunkingconfiguration.html#cfn-bedrock-datasource-semanticchunkingconfiguration-breakpointpercentilethreshold>
                                           SemanticChunkingConfigurationProperty -> Value Integer
breakpointPercentileThreshold :: (Value Prelude.Integer),
                                           -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-datasource-semanticchunkingconfiguration.html#cfn-bedrock-datasource-semanticchunkingconfiguration-buffersize>
                                           SemanticChunkingConfigurationProperty -> Value Integer
bufferSize :: (Value Prelude.Integer),
                                           -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-datasource-semanticchunkingconfiguration.html#cfn-bedrock-datasource-semanticchunkingconfiguration-maxtokens>
                                           SemanticChunkingConfigurationProperty -> Value Integer
maxTokens :: (Value Prelude.Integer)}
  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.Integer
  -> Value Prelude.Integer
     -> Value Prelude.Integer -> SemanticChunkingConfigurationProperty
mkSemanticChunkingConfigurationProperty :: Value Integer
-> Value Integer
-> Value Integer
-> SemanticChunkingConfigurationProperty
mkSemanticChunkingConfigurationProperty
  Value Integer
breakpointPercentileThreshold
  Value Integer
bufferSize
  Value Integer
maxTokens
  = SemanticChunkingConfigurationProperty
      {haddock_workaround_ :: ()
haddock_workaround_ = (),
       breakpointPercentileThreshold :: Value Integer
breakpointPercentileThreshold = Value Integer
breakpointPercentileThreshold,
       bufferSize :: Value Integer
bufferSize = Value Integer
bufferSize, maxTokens :: Value Integer
maxTokens = Value Integer
maxTokens}
instance ToResourceProperties SemanticChunkingConfigurationProperty where
  toResourceProperties :: SemanticChunkingConfigurationProperty -> ResourceProperties
toResourceProperties SemanticChunkingConfigurationProperty {()
Value Integer
haddock_workaround_ :: SemanticChunkingConfigurationProperty -> ()
breakpointPercentileThreshold :: SemanticChunkingConfigurationProperty -> Value Integer
bufferSize :: SemanticChunkingConfigurationProperty -> Value Integer
maxTokens :: SemanticChunkingConfigurationProperty -> Value Integer
haddock_workaround_ :: ()
breakpointPercentileThreshold :: Value Integer
bufferSize :: Value Integer
maxTokens :: Value Integer
..}
    = ResourceProperties
        {awsType :: Text
awsType = Text
"AWS::Bedrock::DataSource.SemanticChunkingConfiguration",
         supportsTags :: Bool
supportsTags = Bool
Prelude.False,
         properties :: Object
properties = [Key
"BreakpointPercentileThreshold"
                         Key -> Value Integer -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
JSON..= Value Integer
breakpointPercentileThreshold,
                       Key
"BufferSize" Key -> Value Integer -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
JSON..= Value Integer
bufferSize, Key
"MaxTokens" Key -> Value Integer -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
JSON..= Value Integer
maxTokens]}
instance JSON.ToJSON SemanticChunkingConfigurationProperty where
  toJSON :: SemanticChunkingConfigurationProperty -> Value
toJSON SemanticChunkingConfigurationProperty {()
Value Integer
haddock_workaround_ :: SemanticChunkingConfigurationProperty -> ()
breakpointPercentileThreshold :: SemanticChunkingConfigurationProperty -> Value Integer
bufferSize :: SemanticChunkingConfigurationProperty -> Value Integer
maxTokens :: SemanticChunkingConfigurationProperty -> Value Integer
haddock_workaround_ :: ()
breakpointPercentileThreshold :: Value Integer
bufferSize :: Value Integer
maxTokens :: Value Integer
..}
    = [(Key, Value)] -> Value
JSON.object
        [Key
"BreakpointPercentileThreshold"
           Key -> Value Integer -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
JSON..= Value Integer
breakpointPercentileThreshold,
         Key
"BufferSize" Key -> Value Integer -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
JSON..= Value Integer
bufferSize, Key
"MaxTokens" Key -> Value Integer -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
JSON..= Value Integer
maxTokens]
instance Property "BreakpointPercentileThreshold" SemanticChunkingConfigurationProperty where
  type PropertyType "BreakpointPercentileThreshold" SemanticChunkingConfigurationProperty = Value Prelude.Integer
  set :: PropertyType
  "BreakpointPercentileThreshold"
  SemanticChunkingConfigurationProperty
-> SemanticChunkingConfigurationProperty
-> SemanticChunkingConfigurationProperty
set PropertyType
  "BreakpointPercentileThreshold"
  SemanticChunkingConfigurationProperty
newValue SemanticChunkingConfigurationProperty {()
Value Integer
haddock_workaround_ :: SemanticChunkingConfigurationProperty -> ()
breakpointPercentileThreshold :: SemanticChunkingConfigurationProperty -> Value Integer
bufferSize :: SemanticChunkingConfigurationProperty -> Value Integer
maxTokens :: SemanticChunkingConfigurationProperty -> Value Integer
haddock_workaround_ :: ()
breakpointPercentileThreshold :: Value Integer
bufferSize :: Value Integer
maxTokens :: Value Integer
..}
    = SemanticChunkingConfigurationProperty
        {breakpointPercentileThreshold :: Value Integer
breakpointPercentileThreshold = PropertyType
  "BreakpointPercentileThreshold"
  SemanticChunkingConfigurationProperty
Value Integer
newValue, ()
Value Integer
haddock_workaround_ :: ()
bufferSize :: Value Integer
maxTokens :: Value Integer
haddock_workaround_ :: ()
bufferSize :: Value Integer
maxTokens :: Value Integer
..}
instance Property "BufferSize" SemanticChunkingConfigurationProperty where
  type PropertyType "BufferSize" SemanticChunkingConfigurationProperty = Value Prelude.Integer
  set :: PropertyType "BufferSize" SemanticChunkingConfigurationProperty
-> SemanticChunkingConfigurationProperty
-> SemanticChunkingConfigurationProperty
set PropertyType "BufferSize" SemanticChunkingConfigurationProperty
newValue SemanticChunkingConfigurationProperty {()
Value Integer
haddock_workaround_ :: SemanticChunkingConfigurationProperty -> ()
breakpointPercentileThreshold :: SemanticChunkingConfigurationProperty -> Value Integer
bufferSize :: SemanticChunkingConfigurationProperty -> Value Integer
maxTokens :: SemanticChunkingConfigurationProperty -> Value Integer
haddock_workaround_ :: ()
breakpointPercentileThreshold :: Value Integer
bufferSize :: Value Integer
maxTokens :: Value Integer
..}
    = SemanticChunkingConfigurationProperty {bufferSize :: Value Integer
bufferSize = PropertyType "BufferSize" SemanticChunkingConfigurationProperty
Value Integer
newValue, ()
Value Integer
haddock_workaround_ :: ()
breakpointPercentileThreshold :: Value Integer
maxTokens :: Value Integer
haddock_workaround_ :: ()
breakpointPercentileThreshold :: Value Integer
maxTokens :: Value Integer
..}
instance Property "MaxTokens" SemanticChunkingConfigurationProperty where
  type PropertyType "MaxTokens" SemanticChunkingConfigurationProperty = Value Prelude.Integer
  set :: PropertyType "MaxTokens" SemanticChunkingConfigurationProperty
-> SemanticChunkingConfigurationProperty
-> SemanticChunkingConfigurationProperty
set PropertyType "MaxTokens" SemanticChunkingConfigurationProperty
newValue SemanticChunkingConfigurationProperty {()
Value Integer
haddock_workaround_ :: SemanticChunkingConfigurationProperty -> ()
breakpointPercentileThreshold :: SemanticChunkingConfigurationProperty -> Value Integer
bufferSize :: SemanticChunkingConfigurationProperty -> Value Integer
maxTokens :: SemanticChunkingConfigurationProperty -> Value Integer
haddock_workaround_ :: ()
breakpointPercentileThreshold :: Value Integer
bufferSize :: Value Integer
maxTokens :: Value Integer
..}
    = SemanticChunkingConfigurationProperty {maxTokens :: Value Integer
maxTokens = PropertyType "MaxTokens" SemanticChunkingConfigurationProperty
Value Integer
newValue, ()
Value Integer
haddock_workaround_ :: ()
breakpointPercentileThreshold :: Value Integer
bufferSize :: Value Integer
haddock_workaround_ :: ()
breakpointPercentileThreshold :: Value Integer
bufferSize :: Value Integer
..}