module Stratosphere.CloudFormation.LambdaHook.HookTargetProperty (
HookTargetProperty(..), mkHookTargetProperty
) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data HookTargetProperty
=
HookTargetProperty {HookTargetProperty -> ()
haddock_workaround_ :: (),
HookTargetProperty -> Value Text
action :: (Value Prelude.Text),
HookTargetProperty -> Value Text
invocationPoint :: (Value Prelude.Text),
HookTargetProperty -> Value Text
targetName :: (Value Prelude.Text)}
deriving stock (HookTargetProperty -> HookTargetProperty -> Bool
(HookTargetProperty -> HookTargetProperty -> Bool)
-> (HookTargetProperty -> HookTargetProperty -> Bool)
-> Eq HookTargetProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: HookTargetProperty -> HookTargetProperty -> Bool
== :: HookTargetProperty -> HookTargetProperty -> Bool
$c/= :: HookTargetProperty -> HookTargetProperty -> Bool
/= :: HookTargetProperty -> HookTargetProperty -> Bool
Prelude.Eq, Int -> HookTargetProperty -> ShowS
[HookTargetProperty] -> ShowS
HookTargetProperty -> String
(Int -> HookTargetProperty -> ShowS)
-> (HookTargetProperty -> String)
-> ([HookTargetProperty] -> ShowS)
-> Show HookTargetProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> HookTargetProperty -> ShowS
showsPrec :: Int -> HookTargetProperty -> ShowS
$cshow :: HookTargetProperty -> String
show :: HookTargetProperty -> String
$cshowList :: [HookTargetProperty] -> ShowS
showList :: [HookTargetProperty] -> ShowS
Prelude.Show)
mkHookTargetProperty ::
Value Prelude.Text
-> Value Prelude.Text -> Value Prelude.Text -> HookTargetProperty
mkHookTargetProperty :: Value Text -> Value Text -> Value Text -> HookTargetProperty
mkHookTargetProperty Value Text
action Value Text
invocationPoint Value Text
targetName
= HookTargetProperty
{haddock_workaround_ :: ()
haddock_workaround_ = (), action :: Value Text
action = Value Text
action,
invocationPoint :: Value Text
invocationPoint = Value Text
invocationPoint, targetName :: Value Text
targetName = Value Text
targetName}
instance ToResourceProperties HookTargetProperty where
toResourceProperties :: HookTargetProperty -> ResourceProperties
toResourceProperties HookTargetProperty {()
Value Text
haddock_workaround_ :: HookTargetProperty -> ()
action :: HookTargetProperty -> Value Text
invocationPoint :: HookTargetProperty -> Value Text
targetName :: HookTargetProperty -> Value Text
haddock_workaround_ :: ()
action :: Value Text
invocationPoint :: Value Text
targetName :: Value Text
..}
= ResourceProperties
{awsType :: Text
awsType = Text
"AWS::CloudFormation::LambdaHook.HookTarget",
supportsTags :: Bool
supportsTags = Bool
Prelude.False,
properties :: Object
properties = [Key
"Action" 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
action,
Key
"InvocationPoint" 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
invocationPoint,
Key
"TargetName" 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
targetName]}
instance JSON.ToJSON HookTargetProperty where
toJSON :: HookTargetProperty -> Value
toJSON HookTargetProperty {()
Value Text
haddock_workaround_ :: HookTargetProperty -> ()
action :: HookTargetProperty -> Value Text
invocationPoint :: HookTargetProperty -> Value Text
targetName :: HookTargetProperty -> Value Text
haddock_workaround_ :: ()
action :: Value Text
invocationPoint :: Value Text
targetName :: Value Text
..}
= [(Key, Value)] -> Value
JSON.object
[Key
"Action" 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
action,
Key
"InvocationPoint" 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
invocationPoint,
Key
"TargetName" 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
targetName]
instance Property "Action" HookTargetProperty where
type PropertyType "Action" HookTargetProperty = Value Prelude.Text
set :: PropertyType "Action" HookTargetProperty
-> HookTargetProperty -> HookTargetProperty
set PropertyType "Action" HookTargetProperty
newValue HookTargetProperty {()
Value Text
haddock_workaround_ :: HookTargetProperty -> ()
action :: HookTargetProperty -> Value Text
invocationPoint :: HookTargetProperty -> Value Text
targetName :: HookTargetProperty -> Value Text
haddock_workaround_ :: ()
action :: Value Text
invocationPoint :: Value Text
targetName :: Value Text
..}
= HookTargetProperty {action :: Value Text
action = PropertyType "Action" HookTargetProperty
Value Text
newValue, ()
Value Text
haddock_workaround_ :: ()
invocationPoint :: Value Text
targetName :: Value Text
haddock_workaround_ :: ()
invocationPoint :: Value Text
targetName :: Value Text
..}
instance Property "InvocationPoint" HookTargetProperty where
type PropertyType "InvocationPoint" HookTargetProperty = Value Prelude.Text
set :: PropertyType "InvocationPoint" HookTargetProperty
-> HookTargetProperty -> HookTargetProperty
set PropertyType "InvocationPoint" HookTargetProperty
newValue HookTargetProperty {()
Value Text
haddock_workaround_ :: HookTargetProperty -> ()
action :: HookTargetProperty -> Value Text
invocationPoint :: HookTargetProperty -> Value Text
targetName :: HookTargetProperty -> Value Text
haddock_workaround_ :: ()
action :: Value Text
invocationPoint :: Value Text
targetName :: Value Text
..}
= HookTargetProperty {invocationPoint :: Value Text
invocationPoint = PropertyType "InvocationPoint" HookTargetProperty
Value Text
newValue, ()
Value Text
haddock_workaround_ :: ()
action :: Value Text
targetName :: Value Text
haddock_workaround_ :: ()
action :: Value Text
targetName :: Value Text
..}
instance Property "TargetName" HookTargetProperty where
type PropertyType "TargetName" HookTargetProperty = Value Prelude.Text
set :: PropertyType "TargetName" HookTargetProperty
-> HookTargetProperty -> HookTargetProperty
set PropertyType "TargetName" HookTargetProperty
newValue HookTargetProperty {()
Value Text
haddock_workaround_ :: HookTargetProperty -> ()
action :: HookTargetProperty -> Value Text
invocationPoint :: HookTargetProperty -> Value Text
targetName :: HookTargetProperty -> Value Text
haddock_workaround_ :: ()
action :: Value Text
invocationPoint :: Value Text
targetName :: Value Text
..}
= HookTargetProperty {targetName :: Value Text
targetName = PropertyType "TargetName" HookTargetProperty
Value Text
newValue, ()
Value Text
haddock_workaround_ :: ()
action :: Value Text
invocationPoint :: Value Text
haddock_workaround_ :: ()
action :: Value Text
invocationPoint :: Value Text
..}