module Stratosphere.Bedrock.Flow.VectorSearchRerankingConfigurationProperty (
        module Exports, VectorSearchRerankingConfigurationProperty(..),
        mkVectorSearchRerankingConfigurationProperty
    ) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import {-# SOURCE #-} Stratosphere.Bedrock.Flow.VectorSearchBedrockRerankingConfigurationProperty as Exports
import Stratosphere.ResourceProperties
import Stratosphere.Value
data VectorSearchRerankingConfigurationProperty
  = -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-flow-vectorsearchrerankingconfiguration.html>
    VectorSearchRerankingConfigurationProperty {VectorSearchRerankingConfigurationProperty -> ()
haddock_workaround_ :: (),
                                                -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-flow-vectorsearchrerankingconfiguration.html#cfn-bedrock-flow-vectorsearchrerankingconfiguration-bedrockrerankingconfiguration>
                                                VectorSearchRerankingConfigurationProperty
-> Maybe VectorSearchBedrockRerankingConfigurationProperty
bedrockRerankingConfiguration :: (Prelude.Maybe VectorSearchBedrockRerankingConfigurationProperty),
                                                -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-flow-vectorsearchrerankingconfiguration.html#cfn-bedrock-flow-vectorsearchrerankingconfiguration-type>
                                                VectorSearchRerankingConfigurationProperty -> Value Text
type' :: (Value Prelude.Text)}
  deriving stock (VectorSearchRerankingConfigurationProperty
-> VectorSearchRerankingConfigurationProperty -> Bool
(VectorSearchRerankingConfigurationProperty
 -> VectorSearchRerankingConfigurationProperty -> Bool)
-> (VectorSearchRerankingConfigurationProperty
    -> VectorSearchRerankingConfigurationProperty -> Bool)
-> Eq VectorSearchRerankingConfigurationProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: VectorSearchRerankingConfigurationProperty
-> VectorSearchRerankingConfigurationProperty -> Bool
== :: VectorSearchRerankingConfigurationProperty
-> VectorSearchRerankingConfigurationProperty -> Bool
$c/= :: VectorSearchRerankingConfigurationProperty
-> VectorSearchRerankingConfigurationProperty -> Bool
/= :: VectorSearchRerankingConfigurationProperty
-> VectorSearchRerankingConfigurationProperty -> Bool
Prelude.Eq, Int -> VectorSearchRerankingConfigurationProperty -> ShowS
[VectorSearchRerankingConfigurationProperty] -> ShowS
VectorSearchRerankingConfigurationProperty -> String
(Int -> VectorSearchRerankingConfigurationProperty -> ShowS)
-> (VectorSearchRerankingConfigurationProperty -> String)
-> ([VectorSearchRerankingConfigurationProperty] -> ShowS)
-> Show VectorSearchRerankingConfigurationProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> VectorSearchRerankingConfigurationProperty -> ShowS
showsPrec :: Int -> VectorSearchRerankingConfigurationProperty -> ShowS
$cshow :: VectorSearchRerankingConfigurationProperty -> String
show :: VectorSearchRerankingConfigurationProperty -> String
$cshowList :: [VectorSearchRerankingConfigurationProperty] -> ShowS
showList :: [VectorSearchRerankingConfigurationProperty] -> ShowS
Prelude.Show)
mkVectorSearchRerankingConfigurationProperty ::
  Value Prelude.Text -> VectorSearchRerankingConfigurationProperty
mkVectorSearchRerankingConfigurationProperty :: Value Text -> VectorSearchRerankingConfigurationProperty
mkVectorSearchRerankingConfigurationProperty Value Text
type'
  = VectorSearchRerankingConfigurationProperty
      {haddock_workaround_ :: ()
haddock_workaround_ = (), type' :: Value Text
type' = Value Text
type',
       bedrockRerankingConfiguration :: Maybe VectorSearchBedrockRerankingConfigurationProperty
bedrockRerankingConfiguration = Maybe VectorSearchBedrockRerankingConfigurationProperty
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties VectorSearchRerankingConfigurationProperty where
  toResourceProperties :: VectorSearchRerankingConfigurationProperty -> ResourceProperties
toResourceProperties
    VectorSearchRerankingConfigurationProperty {Maybe VectorSearchBedrockRerankingConfigurationProperty
()
Value Text
haddock_workaround_ :: VectorSearchRerankingConfigurationProperty -> ()
bedrockRerankingConfiguration :: VectorSearchRerankingConfigurationProperty
-> Maybe VectorSearchBedrockRerankingConfigurationProperty
type' :: VectorSearchRerankingConfigurationProperty -> Value Text
haddock_workaround_ :: ()
bedrockRerankingConfiguration :: Maybe VectorSearchBedrockRerankingConfigurationProperty
type' :: Value Text
..}
    = ResourceProperties
        {awsType :: Text
awsType = Text
"AWS::Bedrock::Flow.VectorSearchRerankingConfiguration",
         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
"Type" 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
type']
                           ([Maybe (Key, Value)] -> [(Key, Value)]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
                              [Key
-> VectorSearchBedrockRerankingConfigurationProperty
-> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"BedrockRerankingConfiguration"
                                 (VectorSearchBedrockRerankingConfigurationProperty -> (Key, Value))
-> Maybe VectorSearchBedrockRerankingConfigurationProperty
-> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe VectorSearchBedrockRerankingConfigurationProperty
bedrockRerankingConfiguration]))}
instance JSON.ToJSON VectorSearchRerankingConfigurationProperty where
  toJSON :: VectorSearchRerankingConfigurationProperty -> Value
toJSON VectorSearchRerankingConfigurationProperty {Maybe VectorSearchBedrockRerankingConfigurationProperty
()
Value Text
haddock_workaround_ :: VectorSearchRerankingConfigurationProperty -> ()
bedrockRerankingConfiguration :: VectorSearchRerankingConfigurationProperty
-> Maybe VectorSearchBedrockRerankingConfigurationProperty
type' :: VectorSearchRerankingConfigurationProperty -> Value Text
haddock_workaround_ :: ()
bedrockRerankingConfiguration :: Maybe VectorSearchBedrockRerankingConfigurationProperty
type' :: Value Text
..}
    = [(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
"Type" 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
type']
              ([Maybe (Key, Value)] -> [(Key, Value)]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
                 [Key
-> VectorSearchBedrockRerankingConfigurationProperty
-> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"BedrockRerankingConfiguration"
                    (VectorSearchBedrockRerankingConfigurationProperty -> (Key, Value))
-> Maybe VectorSearchBedrockRerankingConfigurationProperty
-> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe VectorSearchBedrockRerankingConfigurationProperty
bedrockRerankingConfiguration])))
instance Property "BedrockRerankingConfiguration" VectorSearchRerankingConfigurationProperty where
  type PropertyType "BedrockRerankingConfiguration" VectorSearchRerankingConfigurationProperty = VectorSearchBedrockRerankingConfigurationProperty
  set :: PropertyType
  "BedrockRerankingConfiguration"
  VectorSearchRerankingConfigurationProperty
-> VectorSearchRerankingConfigurationProperty
-> VectorSearchRerankingConfigurationProperty
set PropertyType
  "BedrockRerankingConfiguration"
  VectorSearchRerankingConfigurationProperty
newValue VectorSearchRerankingConfigurationProperty {Maybe VectorSearchBedrockRerankingConfigurationProperty
()
Value Text
haddock_workaround_ :: VectorSearchRerankingConfigurationProperty -> ()
bedrockRerankingConfiguration :: VectorSearchRerankingConfigurationProperty
-> Maybe VectorSearchBedrockRerankingConfigurationProperty
type' :: VectorSearchRerankingConfigurationProperty -> Value Text
haddock_workaround_ :: ()
bedrockRerankingConfiguration :: Maybe VectorSearchBedrockRerankingConfigurationProperty
type' :: Value Text
..}
    = VectorSearchRerankingConfigurationProperty
        {bedrockRerankingConfiguration :: Maybe VectorSearchBedrockRerankingConfigurationProperty
bedrockRerankingConfiguration = VectorSearchBedrockRerankingConfigurationProperty
-> Maybe VectorSearchBedrockRerankingConfigurationProperty
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType
  "BedrockRerankingConfiguration"
  VectorSearchRerankingConfigurationProperty
VectorSearchBedrockRerankingConfigurationProperty
newValue, ()
Value Text
haddock_workaround_ :: ()
type' :: Value Text
haddock_workaround_ :: ()
type' :: Value Text
..}
instance Property "Type" VectorSearchRerankingConfigurationProperty where
  type PropertyType "Type" VectorSearchRerankingConfigurationProperty = Value Prelude.Text
  set :: PropertyType "Type" VectorSearchRerankingConfigurationProperty
-> VectorSearchRerankingConfigurationProperty
-> VectorSearchRerankingConfigurationProperty
set PropertyType "Type" VectorSearchRerankingConfigurationProperty
newValue VectorSearchRerankingConfigurationProperty {Maybe VectorSearchBedrockRerankingConfigurationProperty
()
Value Text
haddock_workaround_ :: VectorSearchRerankingConfigurationProperty -> ()
bedrockRerankingConfiguration :: VectorSearchRerankingConfigurationProperty
-> Maybe VectorSearchBedrockRerankingConfigurationProperty
type' :: VectorSearchRerankingConfigurationProperty -> Value Text
haddock_workaround_ :: ()
bedrockRerankingConfiguration :: Maybe VectorSearchBedrockRerankingConfigurationProperty
type' :: Value Text
..}
    = VectorSearchRerankingConfigurationProperty {type' :: Value Text
type' = PropertyType "Type" VectorSearchRerankingConfigurationProperty
Value Text
newValue, Maybe VectorSearchBedrockRerankingConfigurationProperty
()
haddock_workaround_ :: ()
bedrockRerankingConfiguration :: Maybe VectorSearchBedrockRerankingConfigurationProperty
haddock_workaround_ :: ()
bedrockRerankingConfiguration :: Maybe VectorSearchBedrockRerankingConfigurationProperty
..}