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