module Stratosphere.Glue.Trigger.NotificationPropertyProperty (
NotificationPropertyProperty(..), mkNotificationPropertyProperty
) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data NotificationPropertyProperty
=
NotificationPropertyProperty {NotificationPropertyProperty -> ()
haddock_workaround_ :: (),
NotificationPropertyProperty -> Maybe (Value Integer)
notifyDelayAfter :: (Prelude.Maybe (Value Prelude.Integer))}
deriving stock (NotificationPropertyProperty
-> NotificationPropertyProperty -> Bool
(NotificationPropertyProperty
-> NotificationPropertyProperty -> Bool)
-> (NotificationPropertyProperty
-> NotificationPropertyProperty -> Bool)
-> Eq NotificationPropertyProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: NotificationPropertyProperty
-> NotificationPropertyProperty -> Bool
== :: NotificationPropertyProperty
-> NotificationPropertyProperty -> Bool
$c/= :: NotificationPropertyProperty
-> NotificationPropertyProperty -> Bool
/= :: NotificationPropertyProperty
-> NotificationPropertyProperty -> Bool
Prelude.Eq, Int -> NotificationPropertyProperty -> ShowS
[NotificationPropertyProperty] -> ShowS
NotificationPropertyProperty -> String
(Int -> NotificationPropertyProperty -> ShowS)
-> (NotificationPropertyProperty -> String)
-> ([NotificationPropertyProperty] -> ShowS)
-> Show NotificationPropertyProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> NotificationPropertyProperty -> ShowS
showsPrec :: Int -> NotificationPropertyProperty -> ShowS
$cshow :: NotificationPropertyProperty -> String
show :: NotificationPropertyProperty -> String
$cshowList :: [NotificationPropertyProperty] -> ShowS
showList :: [NotificationPropertyProperty] -> ShowS
Prelude.Show)
mkNotificationPropertyProperty :: NotificationPropertyProperty
mkNotificationPropertyProperty :: NotificationPropertyProperty
mkNotificationPropertyProperty
= NotificationPropertyProperty
{haddock_workaround_ :: ()
haddock_workaround_ = (), notifyDelayAfter :: Maybe (Value Integer)
notifyDelayAfter = Maybe (Value Integer)
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties NotificationPropertyProperty where
toResourceProperties :: NotificationPropertyProperty -> ResourceProperties
toResourceProperties NotificationPropertyProperty {Maybe (Value Integer)
()
haddock_workaround_ :: NotificationPropertyProperty -> ()
notifyDelayAfter :: NotificationPropertyProperty -> Maybe (Value Integer)
haddock_workaround_ :: ()
notifyDelayAfter :: Maybe (Value Integer)
..}
= ResourceProperties
{awsType :: Text
awsType = Text
"AWS::Glue::Trigger.NotificationProperty",
supportsTags :: Bool
supportsTags = Bool
Prelude.False,
properties :: Object
properties = [Item Object] -> Object
forall l. IsList l => [Item l] -> l
Prelude.fromList
([Maybe (Key, Value)] -> [(Key, Value)]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
[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
"NotifyDelayAfter" (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)
notifyDelayAfter])}
instance JSON.ToJSON NotificationPropertyProperty where
toJSON :: NotificationPropertyProperty -> Value
toJSON NotificationPropertyProperty {Maybe (Value Integer)
()
haddock_workaround_ :: NotificationPropertyProperty -> ()
notifyDelayAfter :: NotificationPropertyProperty -> Maybe (Value Integer)
haddock_workaround_ :: ()
notifyDelayAfter :: Maybe (Value Integer)
..}
= [(Key, Value)] -> Value
JSON.object
([Item [(Key, Value)]] -> [(Key, Value)]
forall l. IsList l => [Item l] -> l
Prelude.fromList
([Maybe (Key, Value)] -> [(Key, Value)]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
[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
"NotifyDelayAfter" (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)
notifyDelayAfter]))
instance Property "NotifyDelayAfter" NotificationPropertyProperty where
type PropertyType "NotifyDelayAfter" NotificationPropertyProperty = Value Prelude.Integer
set :: PropertyType "NotifyDelayAfter" NotificationPropertyProperty
-> NotificationPropertyProperty -> NotificationPropertyProperty
set PropertyType "NotifyDelayAfter" NotificationPropertyProperty
newValue NotificationPropertyProperty {Maybe (Value Integer)
()
haddock_workaround_ :: NotificationPropertyProperty -> ()
notifyDelayAfter :: NotificationPropertyProperty -> Maybe (Value Integer)
haddock_workaround_ :: ()
notifyDelayAfter :: Maybe (Value Integer)
..}
= NotificationPropertyProperty
{notifyDelayAfter :: Maybe (Value Integer)
notifyDelayAfter = Value Integer -> Maybe (Value Integer)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "NotifyDelayAfter" NotificationPropertyProperty
Value Integer
newValue, ()
haddock_workaround_ :: ()
haddock_workaround_ :: ()
..}