module Stratosphere.Bedrock.DataSource.TransformationLambdaConfigurationProperty (
TransformationLambdaConfigurationProperty(..),
mkTransformationLambdaConfigurationProperty
) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data TransformationLambdaConfigurationProperty
=
TransformationLambdaConfigurationProperty {TransformationLambdaConfigurationProperty -> ()
haddock_workaround_ :: (),
TransformationLambdaConfigurationProperty -> Value Text
lambdaArn :: (Value Prelude.Text)}
deriving stock (TransformationLambdaConfigurationProperty
-> TransformationLambdaConfigurationProperty -> Bool
(TransformationLambdaConfigurationProperty
-> TransformationLambdaConfigurationProperty -> Bool)
-> (TransformationLambdaConfigurationProperty
-> TransformationLambdaConfigurationProperty -> Bool)
-> Eq TransformationLambdaConfigurationProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: TransformationLambdaConfigurationProperty
-> TransformationLambdaConfigurationProperty -> Bool
== :: TransformationLambdaConfigurationProperty
-> TransformationLambdaConfigurationProperty -> Bool
$c/= :: TransformationLambdaConfigurationProperty
-> TransformationLambdaConfigurationProperty -> Bool
/= :: TransformationLambdaConfigurationProperty
-> TransformationLambdaConfigurationProperty -> Bool
Prelude.Eq, Int -> TransformationLambdaConfigurationProperty -> ShowS
[TransformationLambdaConfigurationProperty] -> ShowS
TransformationLambdaConfigurationProperty -> String
(Int -> TransformationLambdaConfigurationProperty -> ShowS)
-> (TransformationLambdaConfigurationProperty -> String)
-> ([TransformationLambdaConfigurationProperty] -> ShowS)
-> Show TransformationLambdaConfigurationProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> TransformationLambdaConfigurationProperty -> ShowS
showsPrec :: Int -> TransformationLambdaConfigurationProperty -> ShowS
$cshow :: TransformationLambdaConfigurationProperty -> String
show :: TransformationLambdaConfigurationProperty -> String
$cshowList :: [TransformationLambdaConfigurationProperty] -> ShowS
showList :: [TransformationLambdaConfigurationProperty] -> ShowS
Prelude.Show)
mkTransformationLambdaConfigurationProperty ::
Value Prelude.Text -> TransformationLambdaConfigurationProperty
mkTransformationLambdaConfigurationProperty :: Value Text -> TransformationLambdaConfigurationProperty
mkTransformationLambdaConfigurationProperty Value Text
lambdaArn
= TransformationLambdaConfigurationProperty
{haddock_workaround_ :: ()
haddock_workaround_ = (), lambdaArn :: Value Text
lambdaArn = Value Text
lambdaArn}
instance ToResourceProperties TransformationLambdaConfigurationProperty where
toResourceProperties :: TransformationLambdaConfigurationProperty -> ResourceProperties
toResourceProperties TransformationLambdaConfigurationProperty {()
Value Text
haddock_workaround_ :: TransformationLambdaConfigurationProperty -> ()
lambdaArn :: TransformationLambdaConfigurationProperty -> Value Text
haddock_workaround_ :: ()
lambdaArn :: Value Text
..}
= ResourceProperties
{awsType :: Text
awsType = Text
"AWS::Bedrock::DataSource.TransformationLambdaConfiguration",
supportsTags :: Bool
supportsTags = Bool
Prelude.False,
properties :: Object
properties = [Key
"LambdaArn" 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
lambdaArn]}
instance JSON.ToJSON TransformationLambdaConfigurationProperty where
toJSON :: TransformationLambdaConfigurationProperty -> Value
toJSON TransformationLambdaConfigurationProperty {()
Value Text
haddock_workaround_ :: TransformationLambdaConfigurationProperty -> ()
lambdaArn :: TransformationLambdaConfigurationProperty -> Value Text
haddock_workaround_ :: ()
lambdaArn :: Value Text
..}
= [(Key, Value)] -> Value
JSON.object [Key
"LambdaArn" 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
lambdaArn]
instance Property "LambdaArn" TransformationLambdaConfigurationProperty where
type PropertyType "LambdaArn" TransformationLambdaConfigurationProperty = Value Prelude.Text
set :: PropertyType "LambdaArn" TransformationLambdaConfigurationProperty
-> TransformationLambdaConfigurationProperty
-> TransformationLambdaConfigurationProperty
set PropertyType "LambdaArn" TransformationLambdaConfigurationProperty
newValue TransformationLambdaConfigurationProperty {()
Value Text
haddock_workaround_ :: TransformationLambdaConfigurationProperty -> ()
lambdaArn :: TransformationLambdaConfigurationProperty -> Value Text
haddock_workaround_ :: ()
lambdaArn :: Value Text
..}
= TransformationLambdaConfigurationProperty
{lambdaArn :: Value Text
lambdaArn = PropertyType "LambdaArn" TransformationLambdaConfigurationProperty
Value Text
newValue, ()
haddock_workaround_ :: ()
haddock_workaround_ :: ()
..}