{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE DuplicateRecordFields #-}
{-# LANGUAGE NamedFieldPuns #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE RecordWildCards #-}
{-# LANGUAGE StrictData #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# OPTIONS_GHC -fno-warn-unused-imports #-}
{-# OPTIONS_GHC -fno-warn-unused-matches #-}
module Amazonka.KinesisAnalyticsV2.Types.InputLambdaProcessor where
import qualified Amazonka.Core as Core
import qualified Amazonka.Lens as Lens
import qualified Amazonka.Prelude as Prelude
data InputLambdaProcessor = InputLambdaProcessor'
{
InputLambdaProcessor -> Text
resourceARN :: Prelude.Text
}
deriving (InputLambdaProcessor -> InputLambdaProcessor -> Bool
(InputLambdaProcessor -> InputLambdaProcessor -> Bool)
-> (InputLambdaProcessor -> InputLambdaProcessor -> Bool)
-> Eq InputLambdaProcessor
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: InputLambdaProcessor -> InputLambdaProcessor -> Bool
$c/= :: InputLambdaProcessor -> InputLambdaProcessor -> Bool
== :: InputLambdaProcessor -> InputLambdaProcessor -> Bool
$c== :: InputLambdaProcessor -> InputLambdaProcessor -> Bool
Prelude.Eq, ReadPrec [InputLambdaProcessor]
ReadPrec InputLambdaProcessor
Int -> ReadS InputLambdaProcessor
ReadS [InputLambdaProcessor]
(Int -> ReadS InputLambdaProcessor)
-> ReadS [InputLambdaProcessor]
-> ReadPrec InputLambdaProcessor
-> ReadPrec [InputLambdaProcessor]
-> Read InputLambdaProcessor
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [InputLambdaProcessor]
$creadListPrec :: ReadPrec [InputLambdaProcessor]
readPrec :: ReadPrec InputLambdaProcessor
$creadPrec :: ReadPrec InputLambdaProcessor
readList :: ReadS [InputLambdaProcessor]
$creadList :: ReadS [InputLambdaProcessor]
readsPrec :: Int -> ReadS InputLambdaProcessor
$creadsPrec :: Int -> ReadS InputLambdaProcessor
Prelude.Read, Int -> InputLambdaProcessor -> ShowS
[InputLambdaProcessor] -> ShowS
InputLambdaProcessor -> String
(Int -> InputLambdaProcessor -> ShowS)
-> (InputLambdaProcessor -> String)
-> ([InputLambdaProcessor] -> ShowS)
-> Show InputLambdaProcessor
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [InputLambdaProcessor] -> ShowS
$cshowList :: [InputLambdaProcessor] -> ShowS
show :: InputLambdaProcessor -> String
$cshow :: InputLambdaProcessor -> String
showsPrec :: Int -> InputLambdaProcessor -> ShowS
$cshowsPrec :: Int -> InputLambdaProcessor -> ShowS
Prelude.Show, (forall x. InputLambdaProcessor -> Rep InputLambdaProcessor x)
-> (forall x. Rep InputLambdaProcessor x -> InputLambdaProcessor)
-> Generic InputLambdaProcessor
forall x. Rep InputLambdaProcessor x -> InputLambdaProcessor
forall x. InputLambdaProcessor -> Rep InputLambdaProcessor x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep InputLambdaProcessor x -> InputLambdaProcessor
$cfrom :: forall x. InputLambdaProcessor -> Rep InputLambdaProcessor x
Prelude.Generic)
newInputLambdaProcessor ::
Prelude.Text ->
InputLambdaProcessor
newInputLambdaProcessor :: Text -> InputLambdaProcessor
newInputLambdaProcessor Text
pResourceARN_ =
InputLambdaProcessor' :: Text -> InputLambdaProcessor
InputLambdaProcessor' {$sel:resourceARN:InputLambdaProcessor' :: Text
resourceARN = Text
pResourceARN_}
inputLambdaProcessor_resourceARN :: Lens.Lens' InputLambdaProcessor Prelude.Text
inputLambdaProcessor_resourceARN :: (Text -> f Text) -> InputLambdaProcessor -> f InputLambdaProcessor
inputLambdaProcessor_resourceARN = (InputLambdaProcessor -> Text)
-> (InputLambdaProcessor -> Text -> InputLambdaProcessor)
-> Lens InputLambdaProcessor InputLambdaProcessor Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\InputLambdaProcessor' {Text
resourceARN :: Text
$sel:resourceARN:InputLambdaProcessor' :: InputLambdaProcessor -> Text
resourceARN} -> Text
resourceARN) (\s :: InputLambdaProcessor
s@InputLambdaProcessor' {} Text
a -> InputLambdaProcessor
s {$sel:resourceARN:InputLambdaProcessor' :: Text
resourceARN = Text
a} :: InputLambdaProcessor)
instance Prelude.Hashable InputLambdaProcessor
instance Prelude.NFData InputLambdaProcessor
instance Core.ToJSON InputLambdaProcessor where
toJSON :: InputLambdaProcessor -> Value
toJSON InputLambdaProcessor' {Text
resourceARN :: Text
$sel:resourceARN:InputLambdaProcessor' :: InputLambdaProcessor -> Text
..} =
[Pair] -> Value
Core.object
( [Maybe Pair] -> [Pair]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
[Pair -> Maybe Pair
forall a. a -> Maybe a
Prelude.Just (Text
"ResourceARN" Text -> Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..= Text
resourceARN)]
)