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