module Stratosphere.AutoScaling.LifecycleHook (
        LifecycleHook(..), mkLifecycleHook
    ) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data LifecycleHook
  = -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-autoscaling-lifecyclehook.html>
    LifecycleHook {LifecycleHook -> ()
haddock_workaround_ :: (),
                   -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-autoscaling-lifecyclehook.html#cfn-autoscaling-lifecyclehook-autoscalinggroupname>
                   LifecycleHook -> Value Text
autoScalingGroupName :: (Value Prelude.Text),
                   -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-autoscaling-lifecyclehook.html#cfn-autoscaling-lifecyclehook-defaultresult>
                   LifecycleHook -> Maybe (Value Text)
defaultResult :: (Prelude.Maybe (Value Prelude.Text)),
                   -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-autoscaling-lifecyclehook.html#cfn-autoscaling-lifecyclehook-heartbeattimeout>
                   LifecycleHook -> Maybe (Value Integer)
heartbeatTimeout :: (Prelude.Maybe (Value Prelude.Integer)),
                   -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-autoscaling-lifecyclehook.html#cfn-autoscaling-lifecyclehook-lifecyclehookname>
                   LifecycleHook -> Maybe (Value Text)
lifecycleHookName :: (Prelude.Maybe (Value Prelude.Text)),
                   -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-autoscaling-lifecyclehook.html#cfn-autoscaling-lifecyclehook-lifecycletransition>
                   LifecycleHook -> Value Text
lifecycleTransition :: (Value Prelude.Text),
                   -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-autoscaling-lifecyclehook.html#cfn-autoscaling-lifecyclehook-notificationmetadata>
                   LifecycleHook -> Maybe (Value Text)
notificationMetadata :: (Prelude.Maybe (Value Prelude.Text)),
                   -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-autoscaling-lifecyclehook.html#cfn-autoscaling-lifecyclehook-notificationtargetarn>
                   LifecycleHook -> Maybe (Value Text)
notificationTargetARN :: (Prelude.Maybe (Value Prelude.Text)),
                   -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-autoscaling-lifecyclehook.html#cfn-autoscaling-lifecyclehook-rolearn>
                   LifecycleHook -> Maybe (Value Text)
roleARN :: (Prelude.Maybe (Value Prelude.Text))}
  deriving stock (LifecycleHook -> LifecycleHook -> Bool
(LifecycleHook -> LifecycleHook -> Bool)
-> (LifecycleHook -> LifecycleHook -> Bool) -> Eq LifecycleHook
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: LifecycleHook -> LifecycleHook -> Bool
== :: LifecycleHook -> LifecycleHook -> Bool
$c/= :: LifecycleHook -> LifecycleHook -> Bool
/= :: LifecycleHook -> LifecycleHook -> Bool
Prelude.Eq, Int -> LifecycleHook -> ShowS
[LifecycleHook] -> ShowS
LifecycleHook -> String
(Int -> LifecycleHook -> ShowS)
-> (LifecycleHook -> String)
-> ([LifecycleHook] -> ShowS)
-> Show LifecycleHook
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> LifecycleHook -> ShowS
showsPrec :: Int -> LifecycleHook -> ShowS
$cshow :: LifecycleHook -> String
show :: LifecycleHook -> String
$cshowList :: [LifecycleHook] -> ShowS
showList :: [LifecycleHook] -> ShowS
Prelude.Show)
mkLifecycleHook ::
  Value Prelude.Text -> Value Prelude.Text -> LifecycleHook
mkLifecycleHook :: Value Text -> Value Text -> LifecycleHook
mkLifecycleHook Value Text
autoScalingGroupName Value Text
lifecycleTransition
  = LifecycleHook
      {haddock_workaround_ :: ()
haddock_workaround_ = (),
       autoScalingGroupName :: Value Text
autoScalingGroupName = Value Text
autoScalingGroupName,
       lifecycleTransition :: Value Text
lifecycleTransition = Value Text
lifecycleTransition,
       defaultResult :: Maybe (Value Text)
defaultResult = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing,
       heartbeatTimeout :: Maybe (Value Integer)
heartbeatTimeout = Maybe (Value Integer)
forall a. Maybe a
Prelude.Nothing,
       lifecycleHookName :: Maybe (Value Text)
lifecycleHookName = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing,
       notificationMetadata :: Maybe (Value Text)
notificationMetadata = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing,
       notificationTargetARN :: Maybe (Value Text)
notificationTargetARN = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing, roleARN :: Maybe (Value Text)
roleARN = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties LifecycleHook where
  toResourceProperties :: LifecycleHook -> ResourceProperties
toResourceProperties LifecycleHook {Maybe (Value Integer)
Maybe (Value Text)
()
Value Text
haddock_workaround_ :: LifecycleHook -> ()
autoScalingGroupName :: LifecycleHook -> Value Text
defaultResult :: LifecycleHook -> Maybe (Value Text)
heartbeatTimeout :: LifecycleHook -> Maybe (Value Integer)
lifecycleHookName :: LifecycleHook -> Maybe (Value Text)
lifecycleTransition :: LifecycleHook -> Value Text
notificationMetadata :: LifecycleHook -> Maybe (Value Text)
notificationTargetARN :: LifecycleHook -> Maybe (Value Text)
roleARN :: LifecycleHook -> Maybe (Value Text)
haddock_workaround_ :: ()
autoScalingGroupName :: Value Text
defaultResult :: Maybe (Value Text)
heartbeatTimeout :: Maybe (Value Integer)
lifecycleHookName :: Maybe (Value Text)
lifecycleTransition :: Value Text
notificationMetadata :: Maybe (Value Text)
notificationTargetARN :: Maybe (Value Text)
roleARN :: Maybe (Value Text)
..}
    = ResourceProperties
        {awsType :: Text
awsType = Text
"AWS::AutoScaling::LifecycleHook",
         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
"AutoScalingGroupName" 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
autoScalingGroupName,
                            Key
"LifecycleTransition" 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
lifecycleTransition]
                           ([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
"DefaultResult" (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)
defaultResult,
                               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..=) Key
"HeartbeatTimeout" (Value Integer -> (Key, Value))
-> Maybe (Value Integer) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Integer)
heartbeatTimeout,
                               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
"LifecycleHookName" (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)
lifecycleHookName,
                               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
"NotificationMetadata" (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)
notificationMetadata,
                               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
"NotificationTargetARN"
                                 (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)
notificationTargetARN,
                               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
"RoleARN" (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)
roleARN]))}
instance JSON.ToJSON LifecycleHook where
  toJSON :: LifecycleHook -> Value
toJSON LifecycleHook {Maybe (Value Integer)
Maybe (Value Text)
()
Value Text
haddock_workaround_ :: LifecycleHook -> ()
autoScalingGroupName :: LifecycleHook -> Value Text
defaultResult :: LifecycleHook -> Maybe (Value Text)
heartbeatTimeout :: LifecycleHook -> Maybe (Value Integer)
lifecycleHookName :: LifecycleHook -> Maybe (Value Text)
lifecycleTransition :: LifecycleHook -> Value Text
notificationMetadata :: LifecycleHook -> Maybe (Value Text)
notificationTargetARN :: LifecycleHook -> Maybe (Value Text)
roleARN :: LifecycleHook -> Maybe (Value Text)
haddock_workaround_ :: ()
autoScalingGroupName :: Value Text
defaultResult :: Maybe (Value Text)
heartbeatTimeout :: Maybe (Value Integer)
lifecycleHookName :: Maybe (Value Text)
lifecycleTransition :: Value Text
notificationMetadata :: Maybe (Value Text)
notificationTargetARN :: Maybe (Value Text)
roleARN :: 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
"AutoScalingGroupName" 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
autoScalingGroupName,
               Key
"LifecycleTransition" 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
lifecycleTransition]
              ([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
"DefaultResult" (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)
defaultResult,
                  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..=) Key
"HeartbeatTimeout" (Value Integer -> (Key, Value))
-> Maybe (Value Integer) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Integer)
heartbeatTimeout,
                  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
"LifecycleHookName" (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)
lifecycleHookName,
                  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
"NotificationMetadata" (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)
notificationMetadata,
                  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
"NotificationTargetARN"
                    (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)
notificationTargetARN,
                  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
"RoleARN" (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)
roleARN])))
instance Property "AutoScalingGroupName" LifecycleHook where
  type PropertyType "AutoScalingGroupName" LifecycleHook = Value Prelude.Text
  set :: PropertyType "AutoScalingGroupName" LifecycleHook
-> LifecycleHook -> LifecycleHook
set PropertyType "AutoScalingGroupName" LifecycleHook
newValue LifecycleHook {Maybe (Value Integer)
Maybe (Value Text)
()
Value Text
haddock_workaround_ :: LifecycleHook -> ()
autoScalingGroupName :: LifecycleHook -> Value Text
defaultResult :: LifecycleHook -> Maybe (Value Text)
heartbeatTimeout :: LifecycleHook -> Maybe (Value Integer)
lifecycleHookName :: LifecycleHook -> Maybe (Value Text)
lifecycleTransition :: LifecycleHook -> Value Text
notificationMetadata :: LifecycleHook -> Maybe (Value Text)
notificationTargetARN :: LifecycleHook -> Maybe (Value Text)
roleARN :: LifecycleHook -> Maybe (Value Text)
haddock_workaround_ :: ()
autoScalingGroupName :: Value Text
defaultResult :: Maybe (Value Text)
heartbeatTimeout :: Maybe (Value Integer)
lifecycleHookName :: Maybe (Value Text)
lifecycleTransition :: Value Text
notificationMetadata :: Maybe (Value Text)
notificationTargetARN :: Maybe (Value Text)
roleARN :: Maybe (Value Text)
..}
    = LifecycleHook {autoScalingGroupName :: Value Text
autoScalingGroupName = PropertyType "AutoScalingGroupName" LifecycleHook
Value Text
newValue, Maybe (Value Integer)
Maybe (Value Text)
()
Value Text
haddock_workaround_ :: ()
defaultResult :: Maybe (Value Text)
heartbeatTimeout :: Maybe (Value Integer)
lifecycleHookName :: Maybe (Value Text)
lifecycleTransition :: Value Text
notificationMetadata :: Maybe (Value Text)
notificationTargetARN :: Maybe (Value Text)
roleARN :: Maybe (Value Text)
haddock_workaround_ :: ()
defaultResult :: Maybe (Value Text)
heartbeatTimeout :: Maybe (Value Integer)
lifecycleHookName :: Maybe (Value Text)
lifecycleTransition :: Value Text
notificationMetadata :: Maybe (Value Text)
notificationTargetARN :: Maybe (Value Text)
roleARN :: Maybe (Value Text)
..}
instance Property "DefaultResult" LifecycleHook where
  type PropertyType "DefaultResult" LifecycleHook = Value Prelude.Text
  set :: PropertyType "DefaultResult" LifecycleHook
-> LifecycleHook -> LifecycleHook
set PropertyType "DefaultResult" LifecycleHook
newValue LifecycleHook {Maybe (Value Integer)
Maybe (Value Text)
()
Value Text
haddock_workaround_ :: LifecycleHook -> ()
autoScalingGroupName :: LifecycleHook -> Value Text
defaultResult :: LifecycleHook -> Maybe (Value Text)
heartbeatTimeout :: LifecycleHook -> Maybe (Value Integer)
lifecycleHookName :: LifecycleHook -> Maybe (Value Text)
lifecycleTransition :: LifecycleHook -> Value Text
notificationMetadata :: LifecycleHook -> Maybe (Value Text)
notificationTargetARN :: LifecycleHook -> Maybe (Value Text)
roleARN :: LifecycleHook -> Maybe (Value Text)
haddock_workaround_ :: ()
autoScalingGroupName :: Value Text
defaultResult :: Maybe (Value Text)
heartbeatTimeout :: Maybe (Value Integer)
lifecycleHookName :: Maybe (Value Text)
lifecycleTransition :: Value Text
notificationMetadata :: Maybe (Value Text)
notificationTargetARN :: Maybe (Value Text)
roleARN :: Maybe (Value Text)
..}
    = LifecycleHook {defaultResult :: Maybe (Value Text)
defaultResult = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "DefaultResult" LifecycleHook
Value Text
newValue, Maybe (Value Integer)
Maybe (Value Text)
()
Value Text
haddock_workaround_ :: ()
autoScalingGroupName :: Value Text
heartbeatTimeout :: Maybe (Value Integer)
lifecycleHookName :: Maybe (Value Text)
lifecycleTransition :: Value Text
notificationMetadata :: Maybe (Value Text)
notificationTargetARN :: Maybe (Value Text)
roleARN :: Maybe (Value Text)
haddock_workaround_ :: ()
autoScalingGroupName :: Value Text
heartbeatTimeout :: Maybe (Value Integer)
lifecycleHookName :: Maybe (Value Text)
lifecycleTransition :: Value Text
notificationMetadata :: Maybe (Value Text)
notificationTargetARN :: Maybe (Value Text)
roleARN :: Maybe (Value Text)
..}
instance Property "HeartbeatTimeout" LifecycleHook where
  type PropertyType "HeartbeatTimeout" LifecycleHook = Value Prelude.Integer
  set :: PropertyType "HeartbeatTimeout" LifecycleHook
-> LifecycleHook -> LifecycleHook
set PropertyType "HeartbeatTimeout" LifecycleHook
newValue LifecycleHook {Maybe (Value Integer)
Maybe (Value Text)
()
Value Text
haddock_workaround_ :: LifecycleHook -> ()
autoScalingGroupName :: LifecycleHook -> Value Text
defaultResult :: LifecycleHook -> Maybe (Value Text)
heartbeatTimeout :: LifecycleHook -> Maybe (Value Integer)
lifecycleHookName :: LifecycleHook -> Maybe (Value Text)
lifecycleTransition :: LifecycleHook -> Value Text
notificationMetadata :: LifecycleHook -> Maybe (Value Text)
notificationTargetARN :: LifecycleHook -> Maybe (Value Text)
roleARN :: LifecycleHook -> Maybe (Value Text)
haddock_workaround_ :: ()
autoScalingGroupName :: Value Text
defaultResult :: Maybe (Value Text)
heartbeatTimeout :: Maybe (Value Integer)
lifecycleHookName :: Maybe (Value Text)
lifecycleTransition :: Value Text
notificationMetadata :: Maybe (Value Text)
notificationTargetARN :: Maybe (Value Text)
roleARN :: Maybe (Value Text)
..}
    = LifecycleHook {heartbeatTimeout :: Maybe (Value Integer)
heartbeatTimeout = Value Integer -> Maybe (Value Integer)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "HeartbeatTimeout" LifecycleHook
Value Integer
newValue, Maybe (Value Text)
()
Value Text
haddock_workaround_ :: ()
autoScalingGroupName :: Value Text
defaultResult :: Maybe (Value Text)
lifecycleHookName :: Maybe (Value Text)
lifecycleTransition :: Value Text
notificationMetadata :: Maybe (Value Text)
notificationTargetARN :: Maybe (Value Text)
roleARN :: Maybe (Value Text)
haddock_workaround_ :: ()
autoScalingGroupName :: Value Text
defaultResult :: Maybe (Value Text)
lifecycleHookName :: Maybe (Value Text)
lifecycleTransition :: Value Text
notificationMetadata :: Maybe (Value Text)
notificationTargetARN :: Maybe (Value Text)
roleARN :: Maybe (Value Text)
..}
instance Property "LifecycleHookName" LifecycleHook where
  type PropertyType "LifecycleHookName" LifecycleHook = Value Prelude.Text
  set :: PropertyType "LifecycleHookName" LifecycleHook
-> LifecycleHook -> LifecycleHook
set PropertyType "LifecycleHookName" LifecycleHook
newValue LifecycleHook {Maybe (Value Integer)
Maybe (Value Text)
()
Value Text
haddock_workaround_ :: LifecycleHook -> ()
autoScalingGroupName :: LifecycleHook -> Value Text
defaultResult :: LifecycleHook -> Maybe (Value Text)
heartbeatTimeout :: LifecycleHook -> Maybe (Value Integer)
lifecycleHookName :: LifecycleHook -> Maybe (Value Text)
lifecycleTransition :: LifecycleHook -> Value Text
notificationMetadata :: LifecycleHook -> Maybe (Value Text)
notificationTargetARN :: LifecycleHook -> Maybe (Value Text)
roleARN :: LifecycleHook -> Maybe (Value Text)
haddock_workaround_ :: ()
autoScalingGroupName :: Value Text
defaultResult :: Maybe (Value Text)
heartbeatTimeout :: Maybe (Value Integer)
lifecycleHookName :: Maybe (Value Text)
lifecycleTransition :: Value Text
notificationMetadata :: Maybe (Value Text)
notificationTargetARN :: Maybe (Value Text)
roleARN :: Maybe (Value Text)
..}
    = LifecycleHook {lifecycleHookName :: Maybe (Value Text)
lifecycleHookName = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "LifecycleHookName" LifecycleHook
Value Text
newValue, Maybe (Value Integer)
Maybe (Value Text)
()
Value Text
haddock_workaround_ :: ()
autoScalingGroupName :: Value Text
defaultResult :: Maybe (Value Text)
heartbeatTimeout :: Maybe (Value Integer)
lifecycleTransition :: Value Text
notificationMetadata :: Maybe (Value Text)
notificationTargetARN :: Maybe (Value Text)
roleARN :: Maybe (Value Text)
haddock_workaround_ :: ()
autoScalingGroupName :: Value Text
defaultResult :: Maybe (Value Text)
heartbeatTimeout :: Maybe (Value Integer)
lifecycleTransition :: Value Text
notificationMetadata :: Maybe (Value Text)
notificationTargetARN :: Maybe (Value Text)
roleARN :: Maybe (Value Text)
..}
instance Property "LifecycleTransition" LifecycleHook where
  type PropertyType "LifecycleTransition" LifecycleHook = Value Prelude.Text
  set :: PropertyType "LifecycleTransition" LifecycleHook
-> LifecycleHook -> LifecycleHook
set PropertyType "LifecycleTransition" LifecycleHook
newValue LifecycleHook {Maybe (Value Integer)
Maybe (Value Text)
()
Value Text
haddock_workaround_ :: LifecycleHook -> ()
autoScalingGroupName :: LifecycleHook -> Value Text
defaultResult :: LifecycleHook -> Maybe (Value Text)
heartbeatTimeout :: LifecycleHook -> Maybe (Value Integer)
lifecycleHookName :: LifecycleHook -> Maybe (Value Text)
lifecycleTransition :: LifecycleHook -> Value Text
notificationMetadata :: LifecycleHook -> Maybe (Value Text)
notificationTargetARN :: LifecycleHook -> Maybe (Value Text)
roleARN :: LifecycleHook -> Maybe (Value Text)
haddock_workaround_ :: ()
autoScalingGroupName :: Value Text
defaultResult :: Maybe (Value Text)
heartbeatTimeout :: Maybe (Value Integer)
lifecycleHookName :: Maybe (Value Text)
lifecycleTransition :: Value Text
notificationMetadata :: Maybe (Value Text)
notificationTargetARN :: Maybe (Value Text)
roleARN :: Maybe (Value Text)
..}
    = LifecycleHook {lifecycleTransition :: Value Text
lifecycleTransition = PropertyType "LifecycleTransition" LifecycleHook
Value Text
newValue, Maybe (Value Integer)
Maybe (Value Text)
()
Value Text
haddock_workaround_ :: ()
autoScalingGroupName :: Value Text
defaultResult :: Maybe (Value Text)
heartbeatTimeout :: Maybe (Value Integer)
lifecycleHookName :: Maybe (Value Text)
notificationMetadata :: Maybe (Value Text)
notificationTargetARN :: Maybe (Value Text)
roleARN :: Maybe (Value Text)
haddock_workaround_ :: ()
autoScalingGroupName :: Value Text
defaultResult :: Maybe (Value Text)
heartbeatTimeout :: Maybe (Value Integer)
lifecycleHookName :: Maybe (Value Text)
notificationMetadata :: Maybe (Value Text)
notificationTargetARN :: Maybe (Value Text)
roleARN :: Maybe (Value Text)
..}
instance Property "NotificationMetadata" LifecycleHook where
  type PropertyType "NotificationMetadata" LifecycleHook = Value Prelude.Text
  set :: PropertyType "NotificationMetadata" LifecycleHook
-> LifecycleHook -> LifecycleHook
set PropertyType "NotificationMetadata" LifecycleHook
newValue LifecycleHook {Maybe (Value Integer)
Maybe (Value Text)
()
Value Text
haddock_workaround_ :: LifecycleHook -> ()
autoScalingGroupName :: LifecycleHook -> Value Text
defaultResult :: LifecycleHook -> Maybe (Value Text)
heartbeatTimeout :: LifecycleHook -> Maybe (Value Integer)
lifecycleHookName :: LifecycleHook -> Maybe (Value Text)
lifecycleTransition :: LifecycleHook -> Value Text
notificationMetadata :: LifecycleHook -> Maybe (Value Text)
notificationTargetARN :: LifecycleHook -> Maybe (Value Text)
roleARN :: LifecycleHook -> Maybe (Value Text)
haddock_workaround_ :: ()
autoScalingGroupName :: Value Text
defaultResult :: Maybe (Value Text)
heartbeatTimeout :: Maybe (Value Integer)
lifecycleHookName :: Maybe (Value Text)
lifecycleTransition :: Value Text
notificationMetadata :: Maybe (Value Text)
notificationTargetARN :: Maybe (Value Text)
roleARN :: Maybe (Value Text)
..}
    = LifecycleHook {notificationMetadata :: Maybe (Value Text)
notificationMetadata = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "NotificationMetadata" LifecycleHook
Value Text
newValue, Maybe (Value Integer)
Maybe (Value Text)
()
Value Text
haddock_workaround_ :: ()
autoScalingGroupName :: Value Text
defaultResult :: Maybe (Value Text)
heartbeatTimeout :: Maybe (Value Integer)
lifecycleHookName :: Maybe (Value Text)
lifecycleTransition :: Value Text
notificationTargetARN :: Maybe (Value Text)
roleARN :: Maybe (Value Text)
haddock_workaround_ :: ()
autoScalingGroupName :: Value Text
defaultResult :: Maybe (Value Text)
heartbeatTimeout :: Maybe (Value Integer)
lifecycleHookName :: Maybe (Value Text)
lifecycleTransition :: Value Text
notificationTargetARN :: Maybe (Value Text)
roleARN :: Maybe (Value Text)
..}
instance Property "NotificationTargetARN" LifecycleHook where
  type PropertyType "NotificationTargetARN" LifecycleHook = Value Prelude.Text
  set :: PropertyType "NotificationTargetARN" LifecycleHook
-> LifecycleHook -> LifecycleHook
set PropertyType "NotificationTargetARN" LifecycleHook
newValue LifecycleHook {Maybe (Value Integer)
Maybe (Value Text)
()
Value Text
haddock_workaround_ :: LifecycleHook -> ()
autoScalingGroupName :: LifecycleHook -> Value Text
defaultResult :: LifecycleHook -> Maybe (Value Text)
heartbeatTimeout :: LifecycleHook -> Maybe (Value Integer)
lifecycleHookName :: LifecycleHook -> Maybe (Value Text)
lifecycleTransition :: LifecycleHook -> Value Text
notificationMetadata :: LifecycleHook -> Maybe (Value Text)
notificationTargetARN :: LifecycleHook -> Maybe (Value Text)
roleARN :: LifecycleHook -> Maybe (Value Text)
haddock_workaround_ :: ()
autoScalingGroupName :: Value Text
defaultResult :: Maybe (Value Text)
heartbeatTimeout :: Maybe (Value Integer)
lifecycleHookName :: Maybe (Value Text)
lifecycleTransition :: Value Text
notificationMetadata :: Maybe (Value Text)
notificationTargetARN :: Maybe (Value Text)
roleARN :: Maybe (Value Text)
..}
    = LifecycleHook {notificationTargetARN :: Maybe (Value Text)
notificationTargetARN = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "NotificationTargetARN" LifecycleHook
Value Text
newValue, Maybe (Value Integer)
Maybe (Value Text)
()
Value Text
haddock_workaround_ :: ()
autoScalingGroupName :: Value Text
defaultResult :: Maybe (Value Text)
heartbeatTimeout :: Maybe (Value Integer)
lifecycleHookName :: Maybe (Value Text)
lifecycleTransition :: Value Text
notificationMetadata :: Maybe (Value Text)
roleARN :: Maybe (Value Text)
haddock_workaround_ :: ()
autoScalingGroupName :: Value Text
defaultResult :: Maybe (Value Text)
heartbeatTimeout :: Maybe (Value Integer)
lifecycleHookName :: Maybe (Value Text)
lifecycleTransition :: Value Text
notificationMetadata :: Maybe (Value Text)
roleARN :: Maybe (Value Text)
..}
instance Property "RoleARN" LifecycleHook where
  type PropertyType "RoleARN" LifecycleHook = Value Prelude.Text
  set :: PropertyType "RoleARN" LifecycleHook
-> LifecycleHook -> LifecycleHook
set PropertyType "RoleARN" LifecycleHook
newValue LifecycleHook {Maybe (Value Integer)
Maybe (Value Text)
()
Value Text
haddock_workaround_ :: LifecycleHook -> ()
autoScalingGroupName :: LifecycleHook -> Value Text
defaultResult :: LifecycleHook -> Maybe (Value Text)
heartbeatTimeout :: LifecycleHook -> Maybe (Value Integer)
lifecycleHookName :: LifecycleHook -> Maybe (Value Text)
lifecycleTransition :: LifecycleHook -> Value Text
notificationMetadata :: LifecycleHook -> Maybe (Value Text)
notificationTargetARN :: LifecycleHook -> Maybe (Value Text)
roleARN :: LifecycleHook -> Maybe (Value Text)
haddock_workaround_ :: ()
autoScalingGroupName :: Value Text
defaultResult :: Maybe (Value Text)
heartbeatTimeout :: Maybe (Value Integer)
lifecycleHookName :: Maybe (Value Text)
lifecycleTransition :: Value Text
notificationMetadata :: Maybe (Value Text)
notificationTargetARN :: Maybe (Value Text)
roleARN :: Maybe (Value Text)
..}
    = LifecycleHook {roleARN :: Maybe (Value Text)
roleARN = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "RoleARN" LifecycleHook
Value Text
newValue, Maybe (Value Integer)
Maybe (Value Text)
()
Value Text
haddock_workaround_ :: ()
autoScalingGroupName :: Value Text
defaultResult :: Maybe (Value Text)
heartbeatTimeout :: Maybe (Value Integer)
lifecycleHookName :: Maybe (Value Text)
lifecycleTransition :: Value Text
notificationMetadata :: Maybe (Value Text)
notificationTargetARN :: Maybe (Value Text)
haddock_workaround_ :: ()
autoScalingGroupName :: Value Text
defaultResult :: Maybe (Value Text)
heartbeatTimeout :: Maybe (Value Integer)
lifecycleHookName :: Maybe (Value Text)
lifecycleTransition :: Value Text
notificationMetadata :: Maybe (Value Text)
notificationTargetARN :: Maybe (Value Text)
..}