module Stratosphere.KinesisAnalytics.Application.InputLambdaProcessorProperty (
        InputLambdaProcessorProperty(..), mkInputLambdaProcessorProperty
    ) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data InputLambdaProcessorProperty
  = -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-kinesisanalytics-application-inputlambdaprocessor.html>
    InputLambdaProcessorProperty {InputLambdaProcessorProperty -> ()
haddock_workaround_ :: (),
                                  -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-kinesisanalytics-application-inputlambdaprocessor.html#cfn-kinesisanalytics-application-inputlambdaprocessor-resourcearn>
                                  InputLambdaProcessorProperty -> Value Text
resourceARN :: (Value Prelude.Text),
                                  -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-kinesisanalytics-application-inputlambdaprocessor.html#cfn-kinesisanalytics-application-inputlambdaprocessor-rolearn>
                                  InputLambdaProcessorProperty -> Value Text
roleARN :: (Value Prelude.Text)}
  deriving stock (InputLambdaProcessorProperty
-> InputLambdaProcessorProperty -> Bool
(InputLambdaProcessorProperty
 -> InputLambdaProcessorProperty -> Bool)
-> (InputLambdaProcessorProperty
    -> InputLambdaProcessorProperty -> Bool)
-> Eq InputLambdaProcessorProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: InputLambdaProcessorProperty
-> InputLambdaProcessorProperty -> Bool
== :: InputLambdaProcessorProperty
-> InputLambdaProcessorProperty -> Bool
$c/= :: InputLambdaProcessorProperty
-> InputLambdaProcessorProperty -> Bool
/= :: InputLambdaProcessorProperty
-> InputLambdaProcessorProperty -> Bool
Prelude.Eq, Int -> InputLambdaProcessorProperty -> ShowS
[InputLambdaProcessorProperty] -> ShowS
InputLambdaProcessorProperty -> String
(Int -> InputLambdaProcessorProperty -> ShowS)
-> (InputLambdaProcessorProperty -> String)
-> ([InputLambdaProcessorProperty] -> ShowS)
-> Show InputLambdaProcessorProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> InputLambdaProcessorProperty -> ShowS
showsPrec :: Int -> InputLambdaProcessorProperty -> ShowS
$cshow :: InputLambdaProcessorProperty -> String
show :: InputLambdaProcessorProperty -> String
$cshowList :: [InputLambdaProcessorProperty] -> ShowS
showList :: [InputLambdaProcessorProperty] -> ShowS
Prelude.Show)
mkInputLambdaProcessorProperty ::
  Value Prelude.Text
  -> Value Prelude.Text -> InputLambdaProcessorProperty
mkInputLambdaProcessorProperty :: Value Text -> Value Text -> InputLambdaProcessorProperty
mkInputLambdaProcessorProperty Value Text
resourceARN Value Text
roleARN
  = InputLambdaProcessorProperty
      {haddock_workaround_ :: ()
haddock_workaround_ = (), resourceARN :: Value Text
resourceARN = Value Text
resourceARN,
       roleARN :: Value Text
roleARN = Value Text
roleARN}
instance ToResourceProperties InputLambdaProcessorProperty where
  toResourceProperties :: InputLambdaProcessorProperty -> ResourceProperties
toResourceProperties InputLambdaProcessorProperty {()
Value Text
haddock_workaround_ :: InputLambdaProcessorProperty -> ()
resourceARN :: InputLambdaProcessorProperty -> Value Text
roleARN :: InputLambdaProcessorProperty -> Value Text
haddock_workaround_ :: ()
resourceARN :: Value Text
roleARN :: Value Text
..}
    = ResourceProperties
        {awsType :: Text
awsType = Text
"AWS::KinesisAnalytics::Application.InputLambdaProcessor",
         supportsTags :: Bool
supportsTags = Bool
Prelude.False,
         properties :: Object
properties = [Key
"ResourceARN" 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
resourceARN,
                       Key
"RoleARN" 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
roleARN]}
instance JSON.ToJSON InputLambdaProcessorProperty where
  toJSON :: InputLambdaProcessorProperty -> Value
toJSON InputLambdaProcessorProperty {()
Value Text
haddock_workaround_ :: InputLambdaProcessorProperty -> ()
resourceARN :: InputLambdaProcessorProperty -> Value Text
roleARN :: InputLambdaProcessorProperty -> Value Text
haddock_workaround_ :: ()
resourceARN :: Value Text
roleARN :: Value Text
..}
    = [(Key, Value)] -> Value
JSON.object
        [Key
"ResourceARN" 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
resourceARN, Key
"RoleARN" 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
roleARN]
instance Property "ResourceARN" InputLambdaProcessorProperty where
  type PropertyType "ResourceARN" InputLambdaProcessorProperty = Value Prelude.Text
  set :: PropertyType "ResourceARN" InputLambdaProcessorProperty
-> InputLambdaProcessorProperty -> InputLambdaProcessorProperty
set PropertyType "ResourceARN" InputLambdaProcessorProperty
newValue InputLambdaProcessorProperty {()
Value Text
haddock_workaround_ :: InputLambdaProcessorProperty -> ()
resourceARN :: InputLambdaProcessorProperty -> Value Text
roleARN :: InputLambdaProcessorProperty -> Value Text
haddock_workaround_ :: ()
resourceARN :: Value Text
roleARN :: Value Text
..}
    = InputLambdaProcessorProperty {resourceARN :: Value Text
resourceARN = PropertyType "ResourceARN" InputLambdaProcessorProperty
Value Text
newValue, ()
Value Text
haddock_workaround_ :: ()
roleARN :: Value Text
haddock_workaround_ :: ()
roleARN :: Value Text
..}
instance Property "RoleARN" InputLambdaProcessorProperty where
  type PropertyType "RoleARN" InputLambdaProcessorProperty = Value Prelude.Text
  set :: PropertyType "RoleARN" InputLambdaProcessorProperty
-> InputLambdaProcessorProperty -> InputLambdaProcessorProperty
set PropertyType "RoleARN" InputLambdaProcessorProperty
newValue InputLambdaProcessorProperty {()
Value Text
haddock_workaround_ :: InputLambdaProcessorProperty -> ()
resourceARN :: InputLambdaProcessorProperty -> Value Text
roleARN :: InputLambdaProcessorProperty -> Value Text
haddock_workaround_ :: ()
resourceARN :: Value Text
roleARN :: Value Text
..}
    = InputLambdaProcessorProperty {roleARN :: Value Text
roleARN = PropertyType "RoleARN" InputLambdaProcessorProperty
Value Text
newValue, ()
Value Text
haddock_workaround_ :: ()
resourceARN :: Value Text
haddock_workaround_ :: ()
resourceARN :: Value Text
..}