module Stratosphere.IoT.TopicRule.CloudwatchAlarmActionProperty (
        CloudwatchAlarmActionProperty(..), mkCloudwatchAlarmActionProperty
    ) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data CloudwatchAlarmActionProperty
  = -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iot-topicrule-cloudwatchalarmaction.html>
    CloudwatchAlarmActionProperty {CloudwatchAlarmActionProperty -> ()
haddock_workaround_ :: (),
                                   -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iot-topicrule-cloudwatchalarmaction.html#cfn-iot-topicrule-cloudwatchalarmaction-alarmname>
                                   CloudwatchAlarmActionProperty -> Value Text
alarmName :: (Value Prelude.Text),
                                   -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iot-topicrule-cloudwatchalarmaction.html#cfn-iot-topicrule-cloudwatchalarmaction-rolearn>
                                   CloudwatchAlarmActionProperty -> Value Text
roleArn :: (Value Prelude.Text),
                                   -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iot-topicrule-cloudwatchalarmaction.html#cfn-iot-topicrule-cloudwatchalarmaction-statereason>
                                   CloudwatchAlarmActionProperty -> Value Text
stateReason :: (Value Prelude.Text),
                                   -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iot-topicrule-cloudwatchalarmaction.html#cfn-iot-topicrule-cloudwatchalarmaction-statevalue>
                                   CloudwatchAlarmActionProperty -> Value Text
stateValue :: (Value Prelude.Text)}
  deriving stock (CloudwatchAlarmActionProperty
-> CloudwatchAlarmActionProperty -> Bool
(CloudwatchAlarmActionProperty
 -> CloudwatchAlarmActionProperty -> Bool)
-> (CloudwatchAlarmActionProperty
    -> CloudwatchAlarmActionProperty -> Bool)
-> Eq CloudwatchAlarmActionProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: CloudwatchAlarmActionProperty
-> CloudwatchAlarmActionProperty -> Bool
== :: CloudwatchAlarmActionProperty
-> CloudwatchAlarmActionProperty -> Bool
$c/= :: CloudwatchAlarmActionProperty
-> CloudwatchAlarmActionProperty -> Bool
/= :: CloudwatchAlarmActionProperty
-> CloudwatchAlarmActionProperty -> Bool
Prelude.Eq, Int -> CloudwatchAlarmActionProperty -> ShowS
[CloudwatchAlarmActionProperty] -> ShowS
CloudwatchAlarmActionProperty -> String
(Int -> CloudwatchAlarmActionProperty -> ShowS)
-> (CloudwatchAlarmActionProperty -> String)
-> ([CloudwatchAlarmActionProperty] -> ShowS)
-> Show CloudwatchAlarmActionProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> CloudwatchAlarmActionProperty -> ShowS
showsPrec :: Int -> CloudwatchAlarmActionProperty -> ShowS
$cshow :: CloudwatchAlarmActionProperty -> String
show :: CloudwatchAlarmActionProperty -> String
$cshowList :: [CloudwatchAlarmActionProperty] -> ShowS
showList :: [CloudwatchAlarmActionProperty] -> ShowS
Prelude.Show)
mkCloudwatchAlarmActionProperty ::
  Value Prelude.Text
  -> Value Prelude.Text
     -> Value Prelude.Text
        -> Value Prelude.Text -> CloudwatchAlarmActionProperty
mkCloudwatchAlarmActionProperty :: Value Text
-> Value Text
-> Value Text
-> Value Text
-> CloudwatchAlarmActionProperty
mkCloudwatchAlarmActionProperty
  Value Text
alarmName
  Value Text
roleArn
  Value Text
stateReason
  Value Text
stateValue
  = CloudwatchAlarmActionProperty
      {haddock_workaround_ :: ()
haddock_workaround_ = (), alarmName :: Value Text
alarmName = Value Text
alarmName,
       roleArn :: Value Text
roleArn = Value Text
roleArn, stateReason :: Value Text
stateReason = Value Text
stateReason,
       stateValue :: Value Text
stateValue = Value Text
stateValue}
instance ToResourceProperties CloudwatchAlarmActionProperty where
  toResourceProperties :: CloudwatchAlarmActionProperty -> ResourceProperties
toResourceProperties CloudwatchAlarmActionProperty {()
Value Text
haddock_workaround_ :: CloudwatchAlarmActionProperty -> ()
alarmName :: CloudwatchAlarmActionProperty -> Value Text
roleArn :: CloudwatchAlarmActionProperty -> Value Text
stateReason :: CloudwatchAlarmActionProperty -> Value Text
stateValue :: CloudwatchAlarmActionProperty -> Value Text
haddock_workaround_ :: ()
alarmName :: Value Text
roleArn :: Value Text
stateReason :: Value Text
stateValue :: Value Text
..}
    = ResourceProperties
        {awsType :: Text
awsType = Text
"AWS::IoT::TopicRule.CloudwatchAlarmAction",
         supportsTags :: Bool
supportsTags = Bool
Prelude.False,
         properties :: Object
properties = [Key
"AlarmName" 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
alarmName,
                       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, Key
"StateReason" 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
stateReason,
                       Key
"StateValue" 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
stateValue]}
instance JSON.ToJSON CloudwatchAlarmActionProperty where
  toJSON :: CloudwatchAlarmActionProperty -> Value
toJSON CloudwatchAlarmActionProperty {()
Value Text
haddock_workaround_ :: CloudwatchAlarmActionProperty -> ()
alarmName :: CloudwatchAlarmActionProperty -> Value Text
roleArn :: CloudwatchAlarmActionProperty -> Value Text
stateReason :: CloudwatchAlarmActionProperty -> Value Text
stateValue :: CloudwatchAlarmActionProperty -> Value Text
haddock_workaround_ :: ()
alarmName :: Value Text
roleArn :: Value Text
stateReason :: Value Text
stateValue :: Value Text
..}
    = [(Key, Value)] -> Value
JSON.object
        [Key
"AlarmName" 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
alarmName, 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,
         Key
"StateReason" 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
stateReason, Key
"StateValue" 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
stateValue]
instance Property "AlarmName" CloudwatchAlarmActionProperty where
  type PropertyType "AlarmName" CloudwatchAlarmActionProperty = Value Prelude.Text
  set :: PropertyType "AlarmName" CloudwatchAlarmActionProperty
-> CloudwatchAlarmActionProperty -> CloudwatchAlarmActionProperty
set PropertyType "AlarmName" CloudwatchAlarmActionProperty
newValue CloudwatchAlarmActionProperty {()
Value Text
haddock_workaround_ :: CloudwatchAlarmActionProperty -> ()
alarmName :: CloudwatchAlarmActionProperty -> Value Text
roleArn :: CloudwatchAlarmActionProperty -> Value Text
stateReason :: CloudwatchAlarmActionProperty -> Value Text
stateValue :: CloudwatchAlarmActionProperty -> Value Text
haddock_workaround_ :: ()
alarmName :: Value Text
roleArn :: Value Text
stateReason :: Value Text
stateValue :: Value Text
..}
    = CloudwatchAlarmActionProperty {alarmName :: Value Text
alarmName = PropertyType "AlarmName" CloudwatchAlarmActionProperty
Value Text
newValue, ()
Value Text
haddock_workaround_ :: ()
roleArn :: Value Text
stateReason :: Value Text
stateValue :: Value Text
haddock_workaround_ :: ()
roleArn :: Value Text
stateReason :: Value Text
stateValue :: Value Text
..}
instance Property "RoleArn" CloudwatchAlarmActionProperty where
  type PropertyType "RoleArn" CloudwatchAlarmActionProperty = Value Prelude.Text
  set :: PropertyType "RoleArn" CloudwatchAlarmActionProperty
-> CloudwatchAlarmActionProperty -> CloudwatchAlarmActionProperty
set PropertyType "RoleArn" CloudwatchAlarmActionProperty
newValue CloudwatchAlarmActionProperty {()
Value Text
haddock_workaround_ :: CloudwatchAlarmActionProperty -> ()
alarmName :: CloudwatchAlarmActionProperty -> Value Text
roleArn :: CloudwatchAlarmActionProperty -> Value Text
stateReason :: CloudwatchAlarmActionProperty -> Value Text
stateValue :: CloudwatchAlarmActionProperty -> Value Text
haddock_workaround_ :: ()
alarmName :: Value Text
roleArn :: Value Text
stateReason :: Value Text
stateValue :: Value Text
..}
    = CloudwatchAlarmActionProperty {roleArn :: Value Text
roleArn = PropertyType "RoleArn" CloudwatchAlarmActionProperty
Value Text
newValue, ()
Value Text
haddock_workaround_ :: ()
alarmName :: Value Text
stateReason :: Value Text
stateValue :: Value Text
haddock_workaround_ :: ()
alarmName :: Value Text
stateReason :: Value Text
stateValue :: Value Text
..}
instance Property "StateReason" CloudwatchAlarmActionProperty where
  type PropertyType "StateReason" CloudwatchAlarmActionProperty = Value Prelude.Text
  set :: PropertyType "StateReason" CloudwatchAlarmActionProperty
-> CloudwatchAlarmActionProperty -> CloudwatchAlarmActionProperty
set PropertyType "StateReason" CloudwatchAlarmActionProperty
newValue CloudwatchAlarmActionProperty {()
Value Text
haddock_workaround_ :: CloudwatchAlarmActionProperty -> ()
alarmName :: CloudwatchAlarmActionProperty -> Value Text
roleArn :: CloudwatchAlarmActionProperty -> Value Text
stateReason :: CloudwatchAlarmActionProperty -> Value Text
stateValue :: CloudwatchAlarmActionProperty -> Value Text
haddock_workaround_ :: ()
alarmName :: Value Text
roleArn :: Value Text
stateReason :: Value Text
stateValue :: Value Text
..}
    = CloudwatchAlarmActionProperty {stateReason :: Value Text
stateReason = PropertyType "StateReason" CloudwatchAlarmActionProperty
Value Text
newValue, ()
Value Text
haddock_workaround_ :: ()
alarmName :: Value Text
roleArn :: Value Text
stateValue :: Value Text
haddock_workaround_ :: ()
alarmName :: Value Text
roleArn :: Value Text
stateValue :: Value Text
..}
instance Property "StateValue" CloudwatchAlarmActionProperty where
  type PropertyType "StateValue" CloudwatchAlarmActionProperty = Value Prelude.Text
  set :: PropertyType "StateValue" CloudwatchAlarmActionProperty
-> CloudwatchAlarmActionProperty -> CloudwatchAlarmActionProperty
set PropertyType "StateValue" CloudwatchAlarmActionProperty
newValue CloudwatchAlarmActionProperty {()
Value Text
haddock_workaround_ :: CloudwatchAlarmActionProperty -> ()
alarmName :: CloudwatchAlarmActionProperty -> Value Text
roleArn :: CloudwatchAlarmActionProperty -> Value Text
stateReason :: CloudwatchAlarmActionProperty -> Value Text
stateValue :: CloudwatchAlarmActionProperty -> Value Text
haddock_workaround_ :: ()
alarmName :: Value Text
roleArn :: Value Text
stateReason :: Value Text
stateValue :: Value Text
..}
    = CloudwatchAlarmActionProperty {stateValue :: Value Text
stateValue = PropertyType "StateValue" CloudwatchAlarmActionProperty
Value Text
newValue, ()
Value Text
haddock_workaround_ :: ()
alarmName :: Value Text
roleArn :: Value Text
stateReason :: Value Text
haddock_workaround_ :: ()
alarmName :: Value Text
roleArn :: Value Text
stateReason :: Value Text
..}