module Stratosphere.KinesisAnalytics.Application.InputProcessingConfigurationProperty (
module Exports, InputProcessingConfigurationProperty(..),
mkInputProcessingConfigurationProperty
) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import {-# SOURCE #-} Stratosphere.KinesisAnalytics.Application.InputLambdaProcessorProperty as Exports
import Stratosphere.ResourceProperties
data InputProcessingConfigurationProperty
=
InputProcessingConfigurationProperty {InputProcessingConfigurationProperty -> ()
haddock_workaround_ :: (),
InputProcessingConfigurationProperty
-> Maybe InputLambdaProcessorProperty
inputLambdaProcessor :: (Prelude.Maybe InputLambdaProcessorProperty)}
deriving stock (InputProcessingConfigurationProperty
-> InputProcessingConfigurationProperty -> Bool
(InputProcessingConfigurationProperty
-> InputProcessingConfigurationProperty -> Bool)
-> (InputProcessingConfigurationProperty
-> InputProcessingConfigurationProperty -> Bool)
-> Eq InputProcessingConfigurationProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: InputProcessingConfigurationProperty
-> InputProcessingConfigurationProperty -> Bool
== :: InputProcessingConfigurationProperty
-> InputProcessingConfigurationProperty -> Bool
$c/= :: InputProcessingConfigurationProperty
-> InputProcessingConfigurationProperty -> Bool
/= :: InputProcessingConfigurationProperty
-> InputProcessingConfigurationProperty -> Bool
Prelude.Eq, Int -> InputProcessingConfigurationProperty -> ShowS
[InputProcessingConfigurationProperty] -> ShowS
InputProcessingConfigurationProperty -> String
(Int -> InputProcessingConfigurationProperty -> ShowS)
-> (InputProcessingConfigurationProperty -> String)
-> ([InputProcessingConfigurationProperty] -> ShowS)
-> Show InputProcessingConfigurationProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> InputProcessingConfigurationProperty -> ShowS
showsPrec :: Int -> InputProcessingConfigurationProperty -> ShowS
$cshow :: InputProcessingConfigurationProperty -> String
show :: InputProcessingConfigurationProperty -> String
$cshowList :: [InputProcessingConfigurationProperty] -> ShowS
showList :: [InputProcessingConfigurationProperty] -> ShowS
Prelude.Show)
mkInputProcessingConfigurationProperty ::
InputProcessingConfigurationProperty
mkInputProcessingConfigurationProperty :: InputProcessingConfigurationProperty
mkInputProcessingConfigurationProperty
= InputProcessingConfigurationProperty
{haddock_workaround_ :: ()
haddock_workaround_ = (), inputLambdaProcessor :: Maybe InputLambdaProcessorProperty
inputLambdaProcessor = Maybe InputLambdaProcessorProperty
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties InputProcessingConfigurationProperty where
toResourceProperties :: InputProcessingConfigurationProperty -> ResourceProperties
toResourceProperties InputProcessingConfigurationProperty {Maybe InputLambdaProcessorProperty
()
haddock_workaround_ :: InputProcessingConfigurationProperty -> ()
inputLambdaProcessor :: InputProcessingConfigurationProperty
-> Maybe InputLambdaProcessorProperty
haddock_workaround_ :: ()
inputLambdaProcessor :: Maybe InputLambdaProcessorProperty
..}
= ResourceProperties
{awsType :: Text
awsType = Text
"AWS::KinesisAnalytics::Application.InputProcessingConfiguration",
supportsTags :: Bool
supportsTags = Bool
Prelude.False,
properties :: Object
properties = [Item Object] -> Object
forall l. IsList l => [Item l] -> l
Prelude.fromList
([Maybe (Key, Value)] -> [(Key, Value)]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
[Key -> InputLambdaProcessorProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"InputLambdaProcessor"
(InputLambdaProcessorProperty -> (Key, Value))
-> Maybe InputLambdaProcessorProperty -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe InputLambdaProcessorProperty
inputLambdaProcessor])}
instance JSON.ToJSON InputProcessingConfigurationProperty where
toJSON :: InputProcessingConfigurationProperty -> Value
toJSON InputProcessingConfigurationProperty {Maybe InputLambdaProcessorProperty
()
haddock_workaround_ :: InputProcessingConfigurationProperty -> ()
inputLambdaProcessor :: InputProcessingConfigurationProperty
-> Maybe InputLambdaProcessorProperty
haddock_workaround_ :: ()
inputLambdaProcessor :: Maybe InputLambdaProcessorProperty
..}
= [(Key, Value)] -> Value
JSON.object
([Item [(Key, Value)]] -> [(Key, Value)]
forall l. IsList l => [Item l] -> l
Prelude.fromList
([Maybe (Key, Value)] -> [(Key, Value)]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
[Key -> InputLambdaProcessorProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"InputLambdaProcessor"
(InputLambdaProcessorProperty -> (Key, Value))
-> Maybe InputLambdaProcessorProperty -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe InputLambdaProcessorProperty
inputLambdaProcessor]))
instance Property "InputLambdaProcessor" InputProcessingConfigurationProperty where
type PropertyType "InputLambdaProcessor" InputProcessingConfigurationProperty = InputLambdaProcessorProperty
set :: PropertyType
"InputLambdaProcessor" InputProcessingConfigurationProperty
-> InputProcessingConfigurationProperty
-> InputProcessingConfigurationProperty
set PropertyType
"InputLambdaProcessor" InputProcessingConfigurationProperty
newValue InputProcessingConfigurationProperty {Maybe InputLambdaProcessorProperty
()
haddock_workaround_ :: InputProcessingConfigurationProperty -> ()
inputLambdaProcessor :: InputProcessingConfigurationProperty
-> Maybe InputLambdaProcessorProperty
haddock_workaround_ :: ()
inputLambdaProcessor :: Maybe InputLambdaProcessorProperty
..}
= InputProcessingConfigurationProperty
{inputLambdaProcessor :: Maybe InputLambdaProcessorProperty
inputLambdaProcessor = InputLambdaProcessorProperty -> Maybe InputLambdaProcessorProperty
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType
"InputLambdaProcessor" InputProcessingConfigurationProperty
InputLambdaProcessorProperty
newValue, ()
haddock_workaround_ :: ()
haddock_workaround_ :: ()
..}