module Stratosphere.IoTAnalytics.Pipeline.LambdaProperty (
        LambdaProperty(..), mkLambdaProperty
    ) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data LambdaProperty
  = -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iotanalytics-pipeline-lambda.html>
    LambdaProperty {LambdaProperty -> ()
haddock_workaround_ :: (),
                    -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iotanalytics-pipeline-lambda.html#cfn-iotanalytics-pipeline-lambda-batchsize>
                    LambdaProperty -> Value Integer
batchSize :: (Value Prelude.Integer),
                    -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iotanalytics-pipeline-lambda.html#cfn-iotanalytics-pipeline-lambda-lambdaname>
                    LambdaProperty -> Value Text
lambdaName :: (Value Prelude.Text),
                    -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iotanalytics-pipeline-lambda.html#cfn-iotanalytics-pipeline-lambda-name>
                    LambdaProperty -> Value Text
name :: (Value Prelude.Text),
                    -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iotanalytics-pipeline-lambda.html#cfn-iotanalytics-pipeline-lambda-next>
                    LambdaProperty -> Maybe (Value Text)
next :: (Prelude.Maybe (Value Prelude.Text))}
  deriving stock (LambdaProperty -> LambdaProperty -> Bool
(LambdaProperty -> LambdaProperty -> Bool)
-> (LambdaProperty -> LambdaProperty -> Bool) -> Eq LambdaProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: LambdaProperty -> LambdaProperty -> Bool
== :: LambdaProperty -> LambdaProperty -> Bool
$c/= :: LambdaProperty -> LambdaProperty -> Bool
/= :: LambdaProperty -> LambdaProperty -> Bool
Prelude.Eq, Int -> LambdaProperty -> ShowS
[LambdaProperty] -> ShowS
LambdaProperty -> String
(Int -> LambdaProperty -> ShowS)
-> (LambdaProperty -> String)
-> ([LambdaProperty] -> ShowS)
-> Show LambdaProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> LambdaProperty -> ShowS
showsPrec :: Int -> LambdaProperty -> ShowS
$cshow :: LambdaProperty -> String
show :: LambdaProperty -> String
$cshowList :: [LambdaProperty] -> ShowS
showList :: [LambdaProperty] -> ShowS
Prelude.Show)
mkLambdaProperty ::
  Value Prelude.Integer
  -> Value Prelude.Text -> Value Prelude.Text -> LambdaProperty
mkLambdaProperty :: Value Integer -> Value Text -> Value Text -> LambdaProperty
mkLambdaProperty Value Integer
batchSize Value Text
lambdaName Value Text
name
  = LambdaProperty
      {haddock_workaround_ :: ()
haddock_workaround_ = (), batchSize :: Value Integer
batchSize = Value Integer
batchSize,
       lambdaName :: Value Text
lambdaName = Value Text
lambdaName, name :: Value Text
name = Value Text
name, next :: Maybe (Value Text)
next = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties LambdaProperty where
  toResourceProperties :: LambdaProperty -> ResourceProperties
toResourceProperties LambdaProperty {Maybe (Value Text)
()
Value Integer
Value Text
haddock_workaround_ :: LambdaProperty -> ()
batchSize :: LambdaProperty -> Value Integer
lambdaName :: LambdaProperty -> Value Text
name :: LambdaProperty -> Value Text
next :: LambdaProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
batchSize :: Value Integer
lambdaName :: Value Text
name :: Value Text
next :: Maybe (Value Text)
..}
    = ResourceProperties
        {awsType :: Text
awsType = Text
"AWS::IoTAnalytics::Pipeline.Lambda",
         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
"BatchSize" Key -> Value Integer -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
JSON..= Value Integer
batchSize, Key
"LambdaName" 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
lambdaName,
                            Key
"Name" 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
name]
                           ([Maybe (Key, Value)] -> [(Key, Value)]
forall a. [Maybe a] -> [a]
Prelude.catMaybes [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..=) Key
"Next" (Value Text -> (Key, Value))
-> Maybe (Value Text) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Text)
next]))}
instance JSON.ToJSON LambdaProperty where
  toJSON :: LambdaProperty -> Value
toJSON LambdaProperty {Maybe (Value Text)
()
Value Integer
Value Text
haddock_workaround_ :: LambdaProperty -> ()
batchSize :: LambdaProperty -> Value Integer
lambdaName :: LambdaProperty -> Value Text
name :: LambdaProperty -> Value Text
next :: LambdaProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
batchSize :: Value Integer
lambdaName :: Value Text
name :: Value Text
next :: Maybe (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
"BatchSize" Key -> Value Integer -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
JSON..= Value Integer
batchSize, Key
"LambdaName" 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
lambdaName,
               Key
"Name" 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
name]
              ([Maybe (Key, Value)] -> [(Key, Value)]
forall a. [Maybe a] -> [a]
Prelude.catMaybes [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..=) Key
"Next" (Value Text -> (Key, Value))
-> Maybe (Value Text) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Text)
next])))
instance Property "BatchSize" LambdaProperty where
  type PropertyType "BatchSize" LambdaProperty = Value Prelude.Integer
  set :: PropertyType "BatchSize" LambdaProperty
-> LambdaProperty -> LambdaProperty
set PropertyType "BatchSize" LambdaProperty
newValue LambdaProperty {Maybe (Value Text)
()
Value Integer
Value Text
haddock_workaround_ :: LambdaProperty -> ()
batchSize :: LambdaProperty -> Value Integer
lambdaName :: LambdaProperty -> Value Text
name :: LambdaProperty -> Value Text
next :: LambdaProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
batchSize :: Value Integer
lambdaName :: Value Text
name :: Value Text
next :: Maybe (Value Text)
..}
    = LambdaProperty {batchSize :: Value Integer
batchSize = PropertyType "BatchSize" LambdaProperty
Value Integer
newValue, Maybe (Value Text)
()
Value Text
haddock_workaround_ :: ()
lambdaName :: Value Text
name :: Value Text
next :: Maybe (Value Text)
haddock_workaround_ :: ()
lambdaName :: Value Text
name :: Value Text
next :: Maybe (Value Text)
..}
instance Property "LambdaName" LambdaProperty where
  type PropertyType "LambdaName" LambdaProperty = Value Prelude.Text
  set :: PropertyType "LambdaName" LambdaProperty
-> LambdaProperty -> LambdaProperty
set PropertyType "LambdaName" LambdaProperty
newValue LambdaProperty {Maybe (Value Text)
()
Value Integer
Value Text
haddock_workaround_ :: LambdaProperty -> ()
batchSize :: LambdaProperty -> Value Integer
lambdaName :: LambdaProperty -> Value Text
name :: LambdaProperty -> Value Text
next :: LambdaProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
batchSize :: Value Integer
lambdaName :: Value Text
name :: Value Text
next :: Maybe (Value Text)
..}
    = LambdaProperty {lambdaName :: Value Text
lambdaName = PropertyType "LambdaName" LambdaProperty
Value Text
newValue, Maybe (Value Text)
()
Value Integer
Value Text
haddock_workaround_ :: ()
batchSize :: Value Integer
name :: Value Text
next :: Maybe (Value Text)
haddock_workaround_ :: ()
batchSize :: Value Integer
name :: Value Text
next :: Maybe (Value Text)
..}
instance Property "Name" LambdaProperty where
  type PropertyType "Name" LambdaProperty = Value Prelude.Text
  set :: PropertyType "Name" LambdaProperty
-> LambdaProperty -> LambdaProperty
set PropertyType "Name" LambdaProperty
newValue LambdaProperty {Maybe (Value Text)
()
Value Integer
Value Text
haddock_workaround_ :: LambdaProperty -> ()
batchSize :: LambdaProperty -> Value Integer
lambdaName :: LambdaProperty -> Value Text
name :: LambdaProperty -> Value Text
next :: LambdaProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
batchSize :: Value Integer
lambdaName :: Value Text
name :: Value Text
next :: Maybe (Value Text)
..}
    = LambdaProperty {name :: Value Text
name = PropertyType "Name" LambdaProperty
Value Text
newValue, Maybe (Value Text)
()
Value Integer
Value Text
haddock_workaround_ :: ()
batchSize :: Value Integer
lambdaName :: Value Text
next :: Maybe (Value Text)
haddock_workaround_ :: ()
batchSize :: Value Integer
lambdaName :: Value Text
next :: Maybe (Value Text)
..}
instance Property "Next" LambdaProperty where
  type PropertyType "Next" LambdaProperty = Value Prelude.Text
  set :: PropertyType "Next" LambdaProperty
-> LambdaProperty -> LambdaProperty
set PropertyType "Next" LambdaProperty
newValue LambdaProperty {Maybe (Value Text)
()
Value Integer
Value Text
haddock_workaround_ :: LambdaProperty -> ()
batchSize :: LambdaProperty -> Value Integer
lambdaName :: LambdaProperty -> Value Text
name :: LambdaProperty -> Value Text
next :: LambdaProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
batchSize :: Value Integer
lambdaName :: Value Text
name :: Value Text
next :: Maybe (Value Text)
..}
    = LambdaProperty {next :: Maybe (Value Text)
next = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "Next" LambdaProperty
Value Text
newValue, ()
Value Integer
Value Text
haddock_workaround_ :: ()
batchSize :: Value Integer
lambdaName :: Value Text
name :: Value Text
haddock_workaround_ :: ()
batchSize :: Value Integer
lambdaName :: Value Text
name :: Value Text
..}