module Stratosphere.IoTAnalytics.Pipeline.MathProperty (
        MathProperty(..), mkMathProperty
    ) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data MathProperty
  = -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iotanalytics-pipeline-math.html>
    MathProperty {MathProperty -> ()
haddock_workaround_ :: (),
                  -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iotanalytics-pipeline-math.html#cfn-iotanalytics-pipeline-math-attribute>
                  MathProperty -> Value Text
attribute :: (Value Prelude.Text),
                  -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iotanalytics-pipeline-math.html#cfn-iotanalytics-pipeline-math-math>
                  MathProperty -> Value Text
math :: (Value Prelude.Text),
                  -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iotanalytics-pipeline-math.html#cfn-iotanalytics-pipeline-math-name>
                  MathProperty -> Value Text
name :: (Value Prelude.Text),
                  -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iotanalytics-pipeline-math.html#cfn-iotanalytics-pipeline-math-next>
                  MathProperty -> Maybe (Value Text)
next :: (Prelude.Maybe (Value Prelude.Text))}
  deriving stock (MathProperty -> MathProperty -> Bool
(MathProperty -> MathProperty -> Bool)
-> (MathProperty -> MathProperty -> Bool) -> Eq MathProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: MathProperty -> MathProperty -> Bool
== :: MathProperty -> MathProperty -> Bool
$c/= :: MathProperty -> MathProperty -> Bool
/= :: MathProperty -> MathProperty -> Bool
Prelude.Eq, Int -> MathProperty -> ShowS
[MathProperty] -> ShowS
MathProperty -> String
(Int -> MathProperty -> ShowS)
-> (MathProperty -> String)
-> ([MathProperty] -> ShowS)
-> Show MathProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> MathProperty -> ShowS
showsPrec :: Int -> MathProperty -> ShowS
$cshow :: MathProperty -> String
show :: MathProperty -> String
$cshowList :: [MathProperty] -> ShowS
showList :: [MathProperty] -> ShowS
Prelude.Show)
mkMathProperty ::
  Value Prelude.Text
  -> Value Prelude.Text -> Value Prelude.Text -> MathProperty
mkMathProperty :: Value Text -> Value Text -> Value Text -> MathProperty
mkMathProperty Value Text
attribute Value Text
math Value Text
name
  = MathProperty
      {haddock_workaround_ :: ()
haddock_workaround_ = (), attribute :: Value Text
attribute = Value Text
attribute, math :: Value Text
math = Value Text
math,
       name :: Value Text
name = Value Text
name, next :: Maybe (Value Text)
next = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties MathProperty where
  toResourceProperties :: MathProperty -> ResourceProperties
toResourceProperties MathProperty {Maybe (Value Text)
()
Value Text
haddock_workaround_ :: MathProperty -> ()
attribute :: MathProperty -> Value Text
math :: MathProperty -> Value Text
name :: MathProperty -> Value Text
next :: MathProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
attribute :: Value Text
math :: Value Text
name :: Value Text
next :: Maybe (Value Text)
..}
    = ResourceProperties
        {awsType :: Text
awsType = Text
"AWS::IoTAnalytics::Pipeline.Math",
         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
"Attribute" 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
attribute, Key
"Math" 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
math,
                            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 MathProperty where
  toJSON :: MathProperty -> Value
toJSON MathProperty {Maybe (Value Text)
()
Value Text
haddock_workaround_ :: MathProperty -> ()
attribute :: MathProperty -> Value Text
math :: MathProperty -> Value Text
name :: MathProperty -> Value Text
next :: MathProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
attribute :: Value Text
math :: 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
"Attribute" 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
attribute, Key
"Math" 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
math,
               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 "Attribute" MathProperty where
  type PropertyType "Attribute" MathProperty = Value Prelude.Text
  set :: PropertyType "Attribute" MathProperty
-> MathProperty -> MathProperty
set PropertyType "Attribute" MathProperty
newValue MathProperty {Maybe (Value Text)
()
Value Text
haddock_workaround_ :: MathProperty -> ()
attribute :: MathProperty -> Value Text
math :: MathProperty -> Value Text
name :: MathProperty -> Value Text
next :: MathProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
attribute :: Value Text
math :: Value Text
name :: Value Text
next :: Maybe (Value Text)
..}
    = MathProperty {attribute :: Value Text
attribute = PropertyType "Attribute" MathProperty
Value Text
newValue, Maybe (Value Text)
()
Value Text
haddock_workaround_ :: ()
math :: Value Text
name :: Value Text
next :: Maybe (Value Text)
haddock_workaround_ :: ()
math :: Value Text
name :: Value Text
next :: Maybe (Value Text)
..}
instance Property "Math" MathProperty where
  type PropertyType "Math" MathProperty = Value Prelude.Text
  set :: PropertyType "Math" MathProperty -> MathProperty -> MathProperty
set PropertyType "Math" MathProperty
newValue MathProperty {Maybe (Value Text)
()
Value Text
haddock_workaround_ :: MathProperty -> ()
attribute :: MathProperty -> Value Text
math :: MathProperty -> Value Text
name :: MathProperty -> Value Text
next :: MathProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
attribute :: Value Text
math :: Value Text
name :: Value Text
next :: Maybe (Value Text)
..} = MathProperty {math :: Value Text
math = PropertyType "Math" MathProperty
Value Text
newValue, Maybe (Value Text)
()
Value Text
haddock_workaround_ :: ()
attribute :: Value Text
name :: Value Text
next :: Maybe (Value Text)
haddock_workaround_ :: ()
attribute :: Value Text
name :: Value Text
next :: Maybe (Value Text)
..}
instance Property "Name" MathProperty where
  type PropertyType "Name" MathProperty = Value Prelude.Text
  set :: PropertyType "Name" MathProperty -> MathProperty -> MathProperty
set PropertyType "Name" MathProperty
newValue MathProperty {Maybe (Value Text)
()
Value Text
haddock_workaround_ :: MathProperty -> ()
attribute :: MathProperty -> Value Text
math :: MathProperty -> Value Text
name :: MathProperty -> Value Text
next :: MathProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
attribute :: Value Text
math :: Value Text
name :: Value Text
next :: Maybe (Value Text)
..} = MathProperty {name :: Value Text
name = PropertyType "Name" MathProperty
Value Text
newValue, Maybe (Value Text)
()
Value Text
haddock_workaround_ :: ()
attribute :: Value Text
math :: Value Text
next :: Maybe (Value Text)
haddock_workaround_ :: ()
attribute :: Value Text
math :: Value Text
next :: Maybe (Value Text)
..}
instance Property "Next" MathProperty where
  type PropertyType "Next" MathProperty = Value Prelude.Text
  set :: PropertyType "Next" MathProperty -> MathProperty -> MathProperty
set PropertyType "Next" MathProperty
newValue MathProperty {Maybe (Value Text)
()
Value Text
haddock_workaround_ :: MathProperty -> ()
attribute :: MathProperty -> Value Text
math :: MathProperty -> Value Text
name :: MathProperty -> Value Text
next :: MathProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
attribute :: Value Text
math :: Value Text
name :: Value Text
next :: Maybe (Value Text)
..}
    = MathProperty {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" MathProperty
Value Text
newValue, ()
Value Text
haddock_workaround_ :: ()
attribute :: Value Text
math :: Value Text
name :: Value Text
haddock_workaround_ :: ()
attribute :: Value Text
math :: Value Text
name :: Value Text
..}