module Stratosphere.Bedrock.Flow.MetadataConfigurationForRerankingProperty (
module Exports, MetadataConfigurationForRerankingProperty(..),
mkMetadataConfigurationForRerankingProperty
) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import {-# SOURCE #-} Stratosphere.Bedrock.Flow.RerankingMetadataSelectiveModeConfigurationProperty as Exports
import Stratosphere.ResourceProperties
import Stratosphere.Value
data MetadataConfigurationForRerankingProperty
=
MetadataConfigurationForRerankingProperty {MetadataConfigurationForRerankingProperty -> ()
haddock_workaround_ :: (),
MetadataConfigurationForRerankingProperty -> Value Text
selectionMode :: (Value Prelude.Text),
MetadataConfigurationForRerankingProperty
-> Maybe RerankingMetadataSelectiveModeConfigurationProperty
selectiveModeConfiguration :: (Prelude.Maybe RerankingMetadataSelectiveModeConfigurationProperty)}
deriving stock (MetadataConfigurationForRerankingProperty
-> MetadataConfigurationForRerankingProperty -> Bool
(MetadataConfigurationForRerankingProperty
-> MetadataConfigurationForRerankingProperty -> Bool)
-> (MetadataConfigurationForRerankingProperty
-> MetadataConfigurationForRerankingProperty -> Bool)
-> Eq MetadataConfigurationForRerankingProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: MetadataConfigurationForRerankingProperty
-> MetadataConfigurationForRerankingProperty -> Bool
== :: MetadataConfigurationForRerankingProperty
-> MetadataConfigurationForRerankingProperty -> Bool
$c/= :: MetadataConfigurationForRerankingProperty
-> MetadataConfigurationForRerankingProperty -> Bool
/= :: MetadataConfigurationForRerankingProperty
-> MetadataConfigurationForRerankingProperty -> Bool
Prelude.Eq, Int -> MetadataConfigurationForRerankingProperty -> ShowS
[MetadataConfigurationForRerankingProperty] -> ShowS
MetadataConfigurationForRerankingProperty -> String
(Int -> MetadataConfigurationForRerankingProperty -> ShowS)
-> (MetadataConfigurationForRerankingProperty -> String)
-> ([MetadataConfigurationForRerankingProperty] -> ShowS)
-> Show MetadataConfigurationForRerankingProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> MetadataConfigurationForRerankingProperty -> ShowS
showsPrec :: Int -> MetadataConfigurationForRerankingProperty -> ShowS
$cshow :: MetadataConfigurationForRerankingProperty -> String
show :: MetadataConfigurationForRerankingProperty -> String
$cshowList :: [MetadataConfigurationForRerankingProperty] -> ShowS
showList :: [MetadataConfigurationForRerankingProperty] -> ShowS
Prelude.Show)
mkMetadataConfigurationForRerankingProperty ::
Value Prelude.Text -> MetadataConfigurationForRerankingProperty
mkMetadataConfigurationForRerankingProperty :: Value Text -> MetadataConfigurationForRerankingProperty
mkMetadataConfigurationForRerankingProperty Value Text
selectionMode
= MetadataConfigurationForRerankingProperty
{haddock_workaround_ :: ()
haddock_workaround_ = (), selectionMode :: Value Text
selectionMode = Value Text
selectionMode,
selectiveModeConfiguration :: Maybe RerankingMetadataSelectiveModeConfigurationProperty
selectiveModeConfiguration = Maybe RerankingMetadataSelectiveModeConfigurationProperty
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties MetadataConfigurationForRerankingProperty where
toResourceProperties :: MetadataConfigurationForRerankingProperty -> ResourceProperties
toResourceProperties MetadataConfigurationForRerankingProperty {Maybe RerankingMetadataSelectiveModeConfigurationProperty
()
Value Text
haddock_workaround_ :: MetadataConfigurationForRerankingProperty -> ()
selectionMode :: MetadataConfigurationForRerankingProperty -> Value Text
selectiveModeConfiguration :: MetadataConfigurationForRerankingProperty
-> Maybe RerankingMetadataSelectiveModeConfigurationProperty
haddock_workaround_ :: ()
selectionMode :: Value Text
selectiveModeConfiguration :: Maybe RerankingMetadataSelectiveModeConfigurationProperty
..}
= ResourceProperties
{awsType :: Text
awsType = Text
"AWS::Bedrock::Flow.MetadataConfigurationForReranking",
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
"SelectionMode" 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
selectionMode]
([Maybe (Key, Value)] -> [(Key, Value)]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
[Key
-> RerankingMetadataSelectiveModeConfigurationProperty
-> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"SelectiveModeConfiguration"
(RerankingMetadataSelectiveModeConfigurationProperty
-> (Key, Value))
-> Maybe RerankingMetadataSelectiveModeConfigurationProperty
-> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe RerankingMetadataSelectiveModeConfigurationProperty
selectiveModeConfiguration]))}
instance JSON.ToJSON MetadataConfigurationForRerankingProperty where
toJSON :: MetadataConfigurationForRerankingProperty -> Value
toJSON MetadataConfigurationForRerankingProperty {Maybe RerankingMetadataSelectiveModeConfigurationProperty
()
Value Text
haddock_workaround_ :: MetadataConfigurationForRerankingProperty -> ()
selectionMode :: MetadataConfigurationForRerankingProperty -> Value Text
selectiveModeConfiguration :: MetadataConfigurationForRerankingProperty
-> Maybe RerankingMetadataSelectiveModeConfigurationProperty
haddock_workaround_ :: ()
selectionMode :: Value Text
selectiveModeConfiguration :: Maybe RerankingMetadataSelectiveModeConfigurationProperty
..}
= [(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
"SelectionMode" 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
selectionMode]
([Maybe (Key, Value)] -> [(Key, Value)]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
[Key
-> RerankingMetadataSelectiveModeConfigurationProperty
-> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"SelectiveModeConfiguration"
(RerankingMetadataSelectiveModeConfigurationProperty
-> (Key, Value))
-> Maybe RerankingMetadataSelectiveModeConfigurationProperty
-> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe RerankingMetadataSelectiveModeConfigurationProperty
selectiveModeConfiguration])))
instance Property "SelectionMode" MetadataConfigurationForRerankingProperty where
type PropertyType "SelectionMode" MetadataConfigurationForRerankingProperty = Value Prelude.Text
set :: PropertyType
"SelectionMode" MetadataConfigurationForRerankingProperty
-> MetadataConfigurationForRerankingProperty
-> MetadataConfigurationForRerankingProperty
set PropertyType
"SelectionMode" MetadataConfigurationForRerankingProperty
newValue MetadataConfigurationForRerankingProperty {Maybe RerankingMetadataSelectiveModeConfigurationProperty
()
Value Text
haddock_workaround_ :: MetadataConfigurationForRerankingProperty -> ()
selectionMode :: MetadataConfigurationForRerankingProperty -> Value Text
selectiveModeConfiguration :: MetadataConfigurationForRerankingProperty
-> Maybe RerankingMetadataSelectiveModeConfigurationProperty
haddock_workaround_ :: ()
selectionMode :: Value Text
selectiveModeConfiguration :: Maybe RerankingMetadataSelectiveModeConfigurationProperty
..}
= MetadataConfigurationForRerankingProperty
{selectionMode :: Value Text
selectionMode = PropertyType
"SelectionMode" MetadataConfigurationForRerankingProperty
Value Text
newValue, Maybe RerankingMetadataSelectiveModeConfigurationProperty
()
haddock_workaround_ :: ()
selectiveModeConfiguration :: Maybe RerankingMetadataSelectiveModeConfigurationProperty
haddock_workaround_ :: ()
selectiveModeConfiguration :: Maybe RerankingMetadataSelectiveModeConfigurationProperty
..}
instance Property "SelectiveModeConfiguration" MetadataConfigurationForRerankingProperty where
type PropertyType "SelectiveModeConfiguration" MetadataConfigurationForRerankingProperty = RerankingMetadataSelectiveModeConfigurationProperty
set :: PropertyType
"SelectiveModeConfiguration"
MetadataConfigurationForRerankingProperty
-> MetadataConfigurationForRerankingProperty
-> MetadataConfigurationForRerankingProperty
set PropertyType
"SelectiveModeConfiguration"
MetadataConfigurationForRerankingProperty
newValue MetadataConfigurationForRerankingProperty {Maybe RerankingMetadataSelectiveModeConfigurationProperty
()
Value Text
haddock_workaround_ :: MetadataConfigurationForRerankingProperty -> ()
selectionMode :: MetadataConfigurationForRerankingProperty -> Value Text
selectiveModeConfiguration :: MetadataConfigurationForRerankingProperty
-> Maybe RerankingMetadataSelectiveModeConfigurationProperty
haddock_workaround_ :: ()
selectionMode :: Value Text
selectiveModeConfiguration :: Maybe RerankingMetadataSelectiveModeConfigurationProperty
..}
= MetadataConfigurationForRerankingProperty
{selectiveModeConfiguration :: Maybe RerankingMetadataSelectiveModeConfigurationProperty
selectiveModeConfiguration = RerankingMetadataSelectiveModeConfigurationProperty
-> Maybe RerankingMetadataSelectiveModeConfigurationProperty
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType
"SelectiveModeConfiguration"
MetadataConfigurationForRerankingProperty
RerankingMetadataSelectiveModeConfigurationProperty
newValue, ()
Value Text
haddock_workaround_ :: ()
selectionMode :: Value Text
haddock_workaround_ :: ()
selectionMode :: Value Text
..}