module Stratosphere.Bedrock.KnowledgeBase.MongoDbAtlasFieldMappingProperty (
        MongoDbAtlasFieldMappingProperty(..),
        mkMongoDbAtlasFieldMappingProperty
    ) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data MongoDbAtlasFieldMappingProperty
  = -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-knowledgebase-mongodbatlasfieldmapping.html>
    MongoDbAtlasFieldMappingProperty {MongoDbAtlasFieldMappingProperty -> ()
haddock_workaround_ :: (),
                                      -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-knowledgebase-mongodbatlasfieldmapping.html#cfn-bedrock-knowledgebase-mongodbatlasfieldmapping-metadatafield>
                                      MongoDbAtlasFieldMappingProperty -> Value Text
metadataField :: (Value Prelude.Text),
                                      -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-knowledgebase-mongodbatlasfieldmapping.html#cfn-bedrock-knowledgebase-mongodbatlasfieldmapping-textfield>
                                      MongoDbAtlasFieldMappingProperty -> Value Text
textField :: (Value Prelude.Text),
                                      -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-knowledgebase-mongodbatlasfieldmapping.html#cfn-bedrock-knowledgebase-mongodbatlasfieldmapping-vectorfield>
                                      MongoDbAtlasFieldMappingProperty -> Value Text
vectorField :: (Value Prelude.Text)}
  deriving stock (MongoDbAtlasFieldMappingProperty
-> MongoDbAtlasFieldMappingProperty -> Bool
(MongoDbAtlasFieldMappingProperty
 -> MongoDbAtlasFieldMappingProperty -> Bool)
-> (MongoDbAtlasFieldMappingProperty
    -> MongoDbAtlasFieldMappingProperty -> Bool)
-> Eq MongoDbAtlasFieldMappingProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: MongoDbAtlasFieldMappingProperty
-> MongoDbAtlasFieldMappingProperty -> Bool
== :: MongoDbAtlasFieldMappingProperty
-> MongoDbAtlasFieldMappingProperty -> Bool
$c/= :: MongoDbAtlasFieldMappingProperty
-> MongoDbAtlasFieldMappingProperty -> Bool
/= :: MongoDbAtlasFieldMappingProperty
-> MongoDbAtlasFieldMappingProperty -> Bool
Prelude.Eq, Int -> MongoDbAtlasFieldMappingProperty -> ShowS
[MongoDbAtlasFieldMappingProperty] -> ShowS
MongoDbAtlasFieldMappingProperty -> String
(Int -> MongoDbAtlasFieldMappingProperty -> ShowS)
-> (MongoDbAtlasFieldMappingProperty -> String)
-> ([MongoDbAtlasFieldMappingProperty] -> ShowS)
-> Show MongoDbAtlasFieldMappingProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> MongoDbAtlasFieldMappingProperty -> ShowS
showsPrec :: Int -> MongoDbAtlasFieldMappingProperty -> ShowS
$cshow :: MongoDbAtlasFieldMappingProperty -> String
show :: MongoDbAtlasFieldMappingProperty -> String
$cshowList :: [MongoDbAtlasFieldMappingProperty] -> ShowS
showList :: [MongoDbAtlasFieldMappingProperty] -> ShowS
Prelude.Show)
mkMongoDbAtlasFieldMappingProperty ::
  Value Prelude.Text
  -> Value Prelude.Text
     -> Value Prelude.Text -> MongoDbAtlasFieldMappingProperty
mkMongoDbAtlasFieldMappingProperty :: Value Text
-> Value Text -> Value Text -> MongoDbAtlasFieldMappingProperty
mkMongoDbAtlasFieldMappingProperty
  Value Text
metadataField
  Value Text
textField
  Value Text
vectorField
  = MongoDbAtlasFieldMappingProperty
      {haddock_workaround_ :: ()
haddock_workaround_ = (), metadataField :: Value Text
metadataField = Value Text
metadataField,
       textField :: Value Text
textField = Value Text
textField, vectorField :: Value Text
vectorField = Value Text
vectorField}
instance ToResourceProperties MongoDbAtlasFieldMappingProperty where
  toResourceProperties :: MongoDbAtlasFieldMappingProperty -> ResourceProperties
toResourceProperties MongoDbAtlasFieldMappingProperty {()
Value Text
haddock_workaround_ :: MongoDbAtlasFieldMappingProperty -> ()
metadataField :: MongoDbAtlasFieldMappingProperty -> Value Text
textField :: MongoDbAtlasFieldMappingProperty -> Value Text
vectorField :: MongoDbAtlasFieldMappingProperty -> Value Text
haddock_workaround_ :: ()
metadataField :: Value Text
textField :: Value Text
vectorField :: Value Text
..}
    = ResourceProperties
        {awsType :: Text
awsType = Text
"AWS::Bedrock::KnowledgeBase.MongoDbAtlasFieldMapping",
         supportsTags :: Bool
supportsTags = Bool
Prelude.False,
         properties :: Object
properties = [Key
"MetadataField" 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
metadataField,
                       Key
"TextField" 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
textField, Key
"VectorField" 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
vectorField]}
instance JSON.ToJSON MongoDbAtlasFieldMappingProperty where
  toJSON :: MongoDbAtlasFieldMappingProperty -> Value
toJSON MongoDbAtlasFieldMappingProperty {()
Value Text
haddock_workaround_ :: MongoDbAtlasFieldMappingProperty -> ()
metadataField :: MongoDbAtlasFieldMappingProperty -> Value Text
textField :: MongoDbAtlasFieldMappingProperty -> Value Text
vectorField :: MongoDbAtlasFieldMappingProperty -> Value Text
haddock_workaround_ :: ()
metadataField :: Value Text
textField :: Value Text
vectorField :: Value Text
..}
    = [(Key, Value)] -> Value
JSON.object
        [Key
"MetadataField" 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
metadataField,
         Key
"TextField" 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
textField, Key
"VectorField" 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
vectorField]
instance Property "MetadataField" MongoDbAtlasFieldMappingProperty where
  type PropertyType "MetadataField" MongoDbAtlasFieldMappingProperty = Value Prelude.Text
  set :: PropertyType "MetadataField" MongoDbAtlasFieldMappingProperty
-> MongoDbAtlasFieldMappingProperty
-> MongoDbAtlasFieldMappingProperty
set PropertyType "MetadataField" MongoDbAtlasFieldMappingProperty
newValue MongoDbAtlasFieldMappingProperty {()
Value Text
haddock_workaround_ :: MongoDbAtlasFieldMappingProperty -> ()
metadataField :: MongoDbAtlasFieldMappingProperty -> Value Text
textField :: MongoDbAtlasFieldMappingProperty -> Value Text
vectorField :: MongoDbAtlasFieldMappingProperty -> Value Text
haddock_workaround_ :: ()
metadataField :: Value Text
textField :: Value Text
vectorField :: Value Text
..}
    = MongoDbAtlasFieldMappingProperty {metadataField :: Value Text
metadataField = PropertyType "MetadataField" MongoDbAtlasFieldMappingProperty
Value Text
newValue, ()
Value Text
haddock_workaround_ :: ()
textField :: Value Text
vectorField :: Value Text
haddock_workaround_ :: ()
textField :: Value Text
vectorField :: Value Text
..}
instance Property "TextField" MongoDbAtlasFieldMappingProperty where
  type PropertyType "TextField" MongoDbAtlasFieldMappingProperty = Value Prelude.Text
  set :: PropertyType "TextField" MongoDbAtlasFieldMappingProperty
-> MongoDbAtlasFieldMappingProperty
-> MongoDbAtlasFieldMappingProperty
set PropertyType "TextField" MongoDbAtlasFieldMappingProperty
newValue MongoDbAtlasFieldMappingProperty {()
Value Text
haddock_workaround_ :: MongoDbAtlasFieldMappingProperty -> ()
metadataField :: MongoDbAtlasFieldMappingProperty -> Value Text
textField :: MongoDbAtlasFieldMappingProperty -> Value Text
vectorField :: MongoDbAtlasFieldMappingProperty -> Value Text
haddock_workaround_ :: ()
metadataField :: Value Text
textField :: Value Text
vectorField :: Value Text
..}
    = MongoDbAtlasFieldMappingProperty {textField :: Value Text
textField = PropertyType "TextField" MongoDbAtlasFieldMappingProperty
Value Text
newValue, ()
Value Text
haddock_workaround_ :: ()
metadataField :: Value Text
vectorField :: Value Text
haddock_workaround_ :: ()
metadataField :: Value Text
vectorField :: Value Text
..}
instance Property "VectorField" MongoDbAtlasFieldMappingProperty where
  type PropertyType "VectorField" MongoDbAtlasFieldMappingProperty = Value Prelude.Text
  set :: PropertyType "VectorField" MongoDbAtlasFieldMappingProperty
-> MongoDbAtlasFieldMappingProperty
-> MongoDbAtlasFieldMappingProperty
set PropertyType "VectorField" MongoDbAtlasFieldMappingProperty
newValue MongoDbAtlasFieldMappingProperty {()
Value Text
haddock_workaround_ :: MongoDbAtlasFieldMappingProperty -> ()
metadataField :: MongoDbAtlasFieldMappingProperty -> Value Text
textField :: MongoDbAtlasFieldMappingProperty -> Value Text
vectorField :: MongoDbAtlasFieldMappingProperty -> Value Text
haddock_workaround_ :: ()
metadataField :: Value Text
textField :: Value Text
vectorField :: Value Text
..}
    = MongoDbAtlasFieldMappingProperty {vectorField :: Value Text
vectorField = PropertyType "VectorField" MongoDbAtlasFieldMappingProperty
Value Text
newValue, ()
Value Text
haddock_workaround_ :: ()
metadataField :: Value Text
textField :: Value Text
haddock_workaround_ :: ()
metadataField :: Value Text
textField :: Value Text
..}