module Stratosphere.Wisdom.KnowledgeBase.ParsingConfigurationProperty (
module Exports, ParsingConfigurationProperty(..),
mkParsingConfigurationProperty
) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import {-# SOURCE #-} Stratosphere.Wisdom.KnowledgeBase.BedrockFoundationModelConfigurationProperty as Exports
import Stratosphere.ResourceProperties
import Stratosphere.Value
data ParsingConfigurationProperty
=
ParsingConfigurationProperty {ParsingConfigurationProperty -> ()
haddock_workaround_ :: (),
ParsingConfigurationProperty
-> Maybe BedrockFoundationModelConfigurationProperty
bedrockFoundationModelConfiguration :: (Prelude.Maybe BedrockFoundationModelConfigurationProperty),
ParsingConfigurationProperty -> Value Text
parsingStrategy :: (Value Prelude.Text)}
deriving stock (ParsingConfigurationProperty
-> ParsingConfigurationProperty -> Bool
(ParsingConfigurationProperty
-> ParsingConfigurationProperty -> Bool)
-> (ParsingConfigurationProperty
-> ParsingConfigurationProperty -> Bool)
-> Eq ParsingConfigurationProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: ParsingConfigurationProperty
-> ParsingConfigurationProperty -> Bool
== :: ParsingConfigurationProperty
-> ParsingConfigurationProperty -> Bool
$c/= :: ParsingConfigurationProperty
-> ParsingConfigurationProperty -> Bool
/= :: ParsingConfigurationProperty
-> ParsingConfigurationProperty -> Bool
Prelude.Eq, Int -> ParsingConfigurationProperty -> ShowS
[ParsingConfigurationProperty] -> ShowS
ParsingConfigurationProperty -> String
(Int -> ParsingConfigurationProperty -> ShowS)
-> (ParsingConfigurationProperty -> String)
-> ([ParsingConfigurationProperty] -> ShowS)
-> Show ParsingConfigurationProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> ParsingConfigurationProperty -> ShowS
showsPrec :: Int -> ParsingConfigurationProperty -> ShowS
$cshow :: ParsingConfigurationProperty -> String
show :: ParsingConfigurationProperty -> String
$cshowList :: [ParsingConfigurationProperty] -> ShowS
showList :: [ParsingConfigurationProperty] -> ShowS
Prelude.Show)
mkParsingConfigurationProperty ::
Value Prelude.Text -> ParsingConfigurationProperty
mkParsingConfigurationProperty :: Value Text -> ParsingConfigurationProperty
mkParsingConfigurationProperty Value Text
parsingStrategy
= ParsingConfigurationProperty
{haddock_workaround_ :: ()
haddock_workaround_ = (), parsingStrategy :: Value Text
parsingStrategy = Value Text
parsingStrategy,
bedrockFoundationModelConfiguration :: Maybe BedrockFoundationModelConfigurationProperty
bedrockFoundationModelConfiguration = Maybe BedrockFoundationModelConfigurationProperty
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties ParsingConfigurationProperty where
toResourceProperties :: ParsingConfigurationProperty -> ResourceProperties
toResourceProperties ParsingConfigurationProperty {Maybe BedrockFoundationModelConfigurationProperty
()
Value Text
haddock_workaround_ :: ParsingConfigurationProperty -> ()
bedrockFoundationModelConfiguration :: ParsingConfigurationProperty
-> Maybe BedrockFoundationModelConfigurationProperty
parsingStrategy :: ParsingConfigurationProperty -> Value Text
haddock_workaround_ :: ()
bedrockFoundationModelConfiguration :: Maybe BedrockFoundationModelConfigurationProperty
parsingStrategy :: Value Text
..}
= ResourceProperties
{awsType :: Text
awsType = Text
"AWS::Wisdom::KnowledgeBase.ParsingConfiguration",
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
"ParsingStrategy" 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
parsingStrategy]
([Maybe (Key, Value)] -> [(Key, Value)]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
[Key -> BedrockFoundationModelConfigurationProperty -> (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"
(BedrockFoundationModelConfigurationProperty -> (Key, Value))
-> Maybe BedrockFoundationModelConfigurationProperty
-> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe BedrockFoundationModelConfigurationProperty
bedrockFoundationModelConfiguration]))}
instance JSON.ToJSON ParsingConfigurationProperty where
toJSON :: ParsingConfigurationProperty -> Value
toJSON ParsingConfigurationProperty {Maybe BedrockFoundationModelConfigurationProperty
()
Value Text
haddock_workaround_ :: ParsingConfigurationProperty -> ()
bedrockFoundationModelConfiguration :: ParsingConfigurationProperty
-> Maybe BedrockFoundationModelConfigurationProperty
parsingStrategy :: ParsingConfigurationProperty -> Value Text
haddock_workaround_ :: ()
bedrockFoundationModelConfiguration :: Maybe BedrockFoundationModelConfigurationProperty
parsingStrategy :: 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
"ParsingStrategy" 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
parsingStrategy]
([Maybe (Key, Value)] -> [(Key, Value)]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
[Key -> BedrockFoundationModelConfigurationProperty -> (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"
(BedrockFoundationModelConfigurationProperty -> (Key, Value))
-> Maybe BedrockFoundationModelConfigurationProperty
-> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe BedrockFoundationModelConfigurationProperty
bedrockFoundationModelConfiguration])))
instance Property "BedrockFoundationModelConfiguration" ParsingConfigurationProperty where
type PropertyType "BedrockFoundationModelConfiguration" ParsingConfigurationProperty = BedrockFoundationModelConfigurationProperty
set :: PropertyType
"BedrockFoundationModelConfiguration" ParsingConfigurationProperty
-> ParsingConfigurationProperty -> ParsingConfigurationProperty
set PropertyType
"BedrockFoundationModelConfiguration" ParsingConfigurationProperty
newValue ParsingConfigurationProperty {Maybe BedrockFoundationModelConfigurationProperty
()
Value Text
haddock_workaround_ :: ParsingConfigurationProperty -> ()
bedrockFoundationModelConfiguration :: ParsingConfigurationProperty
-> Maybe BedrockFoundationModelConfigurationProperty
parsingStrategy :: ParsingConfigurationProperty -> Value Text
haddock_workaround_ :: ()
bedrockFoundationModelConfiguration :: Maybe BedrockFoundationModelConfigurationProperty
parsingStrategy :: Value Text
..}
= ParsingConfigurationProperty
{bedrockFoundationModelConfiguration :: Maybe BedrockFoundationModelConfigurationProperty
bedrockFoundationModelConfiguration = BedrockFoundationModelConfigurationProperty
-> Maybe BedrockFoundationModelConfigurationProperty
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType
"BedrockFoundationModelConfiguration" ParsingConfigurationProperty
BedrockFoundationModelConfigurationProperty
newValue, ()
Value Text
haddock_workaround_ :: ()
parsingStrategy :: Value Text
haddock_workaround_ :: ()
parsingStrategy :: Value Text
..}
instance Property "ParsingStrategy" ParsingConfigurationProperty where
type PropertyType "ParsingStrategy" ParsingConfigurationProperty = Value Prelude.Text
set :: PropertyType "ParsingStrategy" ParsingConfigurationProperty
-> ParsingConfigurationProperty -> ParsingConfigurationProperty
set PropertyType "ParsingStrategy" ParsingConfigurationProperty
newValue ParsingConfigurationProperty {Maybe BedrockFoundationModelConfigurationProperty
()
Value Text
haddock_workaround_ :: ParsingConfigurationProperty -> ()
bedrockFoundationModelConfiguration :: ParsingConfigurationProperty
-> Maybe BedrockFoundationModelConfigurationProperty
parsingStrategy :: ParsingConfigurationProperty -> Value Text
haddock_workaround_ :: ()
bedrockFoundationModelConfiguration :: Maybe BedrockFoundationModelConfigurationProperty
parsingStrategy :: Value Text
..}
= ParsingConfigurationProperty {parsingStrategy :: Value Text
parsingStrategy = PropertyType "ParsingStrategy" ParsingConfigurationProperty
Value Text
newValue, Maybe BedrockFoundationModelConfigurationProperty
()
haddock_workaround_ :: ()
bedrockFoundationModelConfiguration :: Maybe BedrockFoundationModelConfigurationProperty
haddock_workaround_ :: ()
bedrockFoundationModelConfiguration :: Maybe BedrockFoundationModelConfigurationProperty
..}