module Stratosphere.IoTEvents.AlarmModel.SimpleRuleProperty (
        SimpleRuleProperty(..), mkSimpleRuleProperty
    ) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data SimpleRuleProperty
  = -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iotevents-alarmmodel-simplerule.html>
    SimpleRuleProperty {SimpleRuleProperty -> ()
haddock_workaround_ :: (),
                        -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iotevents-alarmmodel-simplerule.html#cfn-iotevents-alarmmodel-simplerule-comparisonoperator>
                        SimpleRuleProperty -> Value Text
comparisonOperator :: (Value Prelude.Text),
                        -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iotevents-alarmmodel-simplerule.html#cfn-iotevents-alarmmodel-simplerule-inputproperty>
                        SimpleRuleProperty -> Value Text
inputProperty :: (Value Prelude.Text),
                        -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iotevents-alarmmodel-simplerule.html#cfn-iotevents-alarmmodel-simplerule-threshold>
                        SimpleRuleProperty -> Value Text
threshold :: (Value Prelude.Text)}
  deriving stock (SimpleRuleProperty -> SimpleRuleProperty -> Bool
(SimpleRuleProperty -> SimpleRuleProperty -> Bool)
-> (SimpleRuleProperty -> SimpleRuleProperty -> Bool)
-> Eq SimpleRuleProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: SimpleRuleProperty -> SimpleRuleProperty -> Bool
== :: SimpleRuleProperty -> SimpleRuleProperty -> Bool
$c/= :: SimpleRuleProperty -> SimpleRuleProperty -> Bool
/= :: SimpleRuleProperty -> SimpleRuleProperty -> Bool
Prelude.Eq, Int -> SimpleRuleProperty -> ShowS
[SimpleRuleProperty] -> ShowS
SimpleRuleProperty -> String
(Int -> SimpleRuleProperty -> ShowS)
-> (SimpleRuleProperty -> String)
-> ([SimpleRuleProperty] -> ShowS)
-> Show SimpleRuleProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> SimpleRuleProperty -> ShowS
showsPrec :: Int -> SimpleRuleProperty -> ShowS
$cshow :: SimpleRuleProperty -> String
show :: SimpleRuleProperty -> String
$cshowList :: [SimpleRuleProperty] -> ShowS
showList :: [SimpleRuleProperty] -> ShowS
Prelude.Show)
mkSimpleRuleProperty ::
  Value Prelude.Text
  -> Value Prelude.Text -> Value Prelude.Text -> SimpleRuleProperty
mkSimpleRuleProperty :: Value Text -> Value Text -> Value Text -> SimpleRuleProperty
mkSimpleRuleProperty Value Text
comparisonOperator Value Text
inputProperty Value Text
threshold
  = SimpleRuleProperty
      {haddock_workaround_ :: ()
haddock_workaround_ = (), comparisonOperator :: Value Text
comparisonOperator = Value Text
comparisonOperator,
       inputProperty :: Value Text
inputProperty = Value Text
inputProperty, threshold :: Value Text
threshold = Value Text
threshold}
instance ToResourceProperties SimpleRuleProperty where
  toResourceProperties :: SimpleRuleProperty -> ResourceProperties
toResourceProperties SimpleRuleProperty {()
Value Text
haddock_workaround_ :: SimpleRuleProperty -> ()
comparisonOperator :: SimpleRuleProperty -> Value Text
inputProperty :: SimpleRuleProperty -> Value Text
threshold :: SimpleRuleProperty -> Value Text
haddock_workaround_ :: ()
comparisonOperator :: Value Text
inputProperty :: Value Text
threshold :: Value Text
..}
    = ResourceProperties
        {awsType :: Text
awsType = Text
"AWS::IoTEvents::AlarmModel.SimpleRule",
         supportsTags :: Bool
supportsTags = Bool
Prelude.False,
         properties :: Object
properties = [Key
"ComparisonOperator" 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
comparisonOperator,
                       Key
"InputProperty" 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
inputProperty,
                       Key
"Threshold" 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
threshold]}
instance JSON.ToJSON SimpleRuleProperty where
  toJSON :: SimpleRuleProperty -> Value
toJSON SimpleRuleProperty {()
Value Text
haddock_workaround_ :: SimpleRuleProperty -> ()
comparisonOperator :: SimpleRuleProperty -> Value Text
inputProperty :: SimpleRuleProperty -> Value Text
threshold :: SimpleRuleProperty -> Value Text
haddock_workaround_ :: ()
comparisonOperator :: Value Text
inputProperty :: Value Text
threshold :: Value Text
..}
    = [(Key, Value)] -> Value
JSON.object
        [Key
"ComparisonOperator" 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
comparisonOperator,
         Key
"InputProperty" 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
inputProperty,
         Key
"Threshold" 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
threshold]
instance Property "ComparisonOperator" SimpleRuleProperty where
  type PropertyType "ComparisonOperator" SimpleRuleProperty = Value Prelude.Text
  set :: PropertyType "ComparisonOperator" SimpleRuleProperty
-> SimpleRuleProperty -> SimpleRuleProperty
set PropertyType "ComparisonOperator" SimpleRuleProperty
newValue SimpleRuleProperty {()
Value Text
haddock_workaround_ :: SimpleRuleProperty -> ()
comparisonOperator :: SimpleRuleProperty -> Value Text
inputProperty :: SimpleRuleProperty -> Value Text
threshold :: SimpleRuleProperty -> Value Text
haddock_workaround_ :: ()
comparisonOperator :: Value Text
inputProperty :: Value Text
threshold :: Value Text
..}
    = SimpleRuleProperty {comparisonOperator :: Value Text
comparisonOperator = PropertyType "ComparisonOperator" SimpleRuleProperty
Value Text
newValue, ()
Value Text
haddock_workaround_ :: ()
inputProperty :: Value Text
threshold :: Value Text
haddock_workaround_ :: ()
inputProperty :: Value Text
threshold :: Value Text
..}
instance Property "InputProperty" SimpleRuleProperty where
  type PropertyType "InputProperty" SimpleRuleProperty = Value Prelude.Text
  set :: PropertyType "InputProperty" SimpleRuleProperty
-> SimpleRuleProperty -> SimpleRuleProperty
set PropertyType "InputProperty" SimpleRuleProperty
newValue SimpleRuleProperty {()
Value Text
haddock_workaround_ :: SimpleRuleProperty -> ()
comparisonOperator :: SimpleRuleProperty -> Value Text
inputProperty :: SimpleRuleProperty -> Value Text
threshold :: SimpleRuleProperty -> Value Text
haddock_workaround_ :: ()
comparisonOperator :: Value Text
inputProperty :: Value Text
threshold :: Value Text
..}
    = SimpleRuleProperty {inputProperty :: Value Text
inputProperty = PropertyType "InputProperty" SimpleRuleProperty
Value Text
newValue, ()
Value Text
haddock_workaround_ :: ()
comparisonOperator :: Value Text
threshold :: Value Text
haddock_workaround_ :: ()
comparisonOperator :: Value Text
threshold :: Value Text
..}
instance Property "Threshold" SimpleRuleProperty where
  type PropertyType "Threshold" SimpleRuleProperty = Value Prelude.Text
  set :: PropertyType "Threshold" SimpleRuleProperty
-> SimpleRuleProperty -> SimpleRuleProperty
set PropertyType "Threshold" SimpleRuleProperty
newValue SimpleRuleProperty {()
Value Text
haddock_workaround_ :: SimpleRuleProperty -> ()
comparisonOperator :: SimpleRuleProperty -> Value Text
inputProperty :: SimpleRuleProperty -> Value Text
threshold :: SimpleRuleProperty -> Value Text
haddock_workaround_ :: ()
comparisonOperator :: Value Text
inputProperty :: Value Text
threshold :: Value Text
..}
    = SimpleRuleProperty {threshold :: Value Text
threshold = PropertyType "Threshold" SimpleRuleProperty
Value Text
newValue, ()
Value Text
haddock_workaround_ :: ()
comparisonOperator :: Value Text
inputProperty :: Value Text
haddock_workaround_ :: ()
comparisonOperator :: Value Text
inputProperty :: Value Text
..}