module Stratosphere.Lambda.EventInvokeConfig.OnFailureProperty (
OnFailureProperty(..), mkOnFailureProperty
) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data OnFailureProperty
=
OnFailureProperty {OnFailureProperty -> ()
haddock_workaround_ :: (),
OnFailureProperty -> Value Text
destination :: (Value Prelude.Text)}
deriving stock (OnFailureProperty -> OnFailureProperty -> Bool
(OnFailureProperty -> OnFailureProperty -> Bool)
-> (OnFailureProperty -> OnFailureProperty -> Bool)
-> Eq OnFailureProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: OnFailureProperty -> OnFailureProperty -> Bool
== :: OnFailureProperty -> OnFailureProperty -> Bool
$c/= :: OnFailureProperty -> OnFailureProperty -> Bool
/= :: OnFailureProperty -> OnFailureProperty -> Bool
Prelude.Eq, Int -> OnFailureProperty -> ShowS
[OnFailureProperty] -> ShowS
OnFailureProperty -> String
(Int -> OnFailureProperty -> ShowS)
-> (OnFailureProperty -> String)
-> ([OnFailureProperty] -> ShowS)
-> Show OnFailureProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> OnFailureProperty -> ShowS
showsPrec :: Int -> OnFailureProperty -> ShowS
$cshow :: OnFailureProperty -> String
show :: OnFailureProperty -> String
$cshowList :: [OnFailureProperty] -> ShowS
showList :: [OnFailureProperty] -> ShowS
Prelude.Show)
mkOnFailureProperty :: Value Prelude.Text -> OnFailureProperty
mkOnFailureProperty :: Value Text -> OnFailureProperty
mkOnFailureProperty Value Text
destination
= OnFailureProperty
{haddock_workaround_ :: ()
haddock_workaround_ = (), destination :: Value Text
destination = Value Text
destination}
instance ToResourceProperties OnFailureProperty where
toResourceProperties :: OnFailureProperty -> ResourceProperties
toResourceProperties OnFailureProperty {()
Value Text
haddock_workaround_ :: OnFailureProperty -> ()
destination :: OnFailureProperty -> Value Text
haddock_workaround_ :: ()
destination :: Value Text
..}
= ResourceProperties
{awsType :: Text
awsType = Text
"AWS::Lambda::EventInvokeConfig.OnFailure",
supportsTags :: Bool
supportsTags = Bool
Prelude.False,
properties :: Object
properties = [Key
"Destination" 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
destination]}
instance JSON.ToJSON OnFailureProperty where
toJSON :: OnFailureProperty -> Value
toJSON OnFailureProperty {()
Value Text
haddock_workaround_ :: OnFailureProperty -> ()
destination :: OnFailureProperty -> Value Text
haddock_workaround_ :: ()
destination :: Value Text
..}
= [(Key, Value)] -> Value
JSON.object [Key
"Destination" 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
destination]
instance Property "Destination" OnFailureProperty where
type PropertyType "Destination" OnFailureProperty = Value Prelude.Text
set :: PropertyType "Destination" OnFailureProperty
-> OnFailureProperty -> OnFailureProperty
set PropertyType "Destination" OnFailureProperty
newValue OnFailureProperty {()
Value Text
haddock_workaround_ :: OnFailureProperty -> ()
destination :: OnFailureProperty -> Value Text
haddock_workaround_ :: ()
destination :: Value Text
..}
= OnFailureProperty {destination :: Value Text
destination = PropertyType "Destination" OnFailureProperty
Value Text
newValue, ()
haddock_workaround_ :: ()
haddock_workaround_ :: ()
..}