module Stratosphere.Lex.Bot.CodeHookSpecificationProperty (
module Exports, CodeHookSpecificationProperty(..),
mkCodeHookSpecificationProperty
) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import {-# SOURCE #-} Stratosphere.Lex.Bot.LambdaCodeHookProperty as Exports
import Stratosphere.ResourceProperties
data CodeHookSpecificationProperty
=
CodeHookSpecificationProperty {CodeHookSpecificationProperty -> ()
haddock_workaround_ :: (),
CodeHookSpecificationProperty -> LambdaCodeHookProperty
lambdaCodeHook :: LambdaCodeHookProperty}
deriving stock (CodeHookSpecificationProperty
-> CodeHookSpecificationProperty -> Bool
(CodeHookSpecificationProperty
-> CodeHookSpecificationProperty -> Bool)
-> (CodeHookSpecificationProperty
-> CodeHookSpecificationProperty -> Bool)
-> Eq CodeHookSpecificationProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: CodeHookSpecificationProperty
-> CodeHookSpecificationProperty -> Bool
== :: CodeHookSpecificationProperty
-> CodeHookSpecificationProperty -> Bool
$c/= :: CodeHookSpecificationProperty
-> CodeHookSpecificationProperty -> Bool
/= :: CodeHookSpecificationProperty
-> CodeHookSpecificationProperty -> Bool
Prelude.Eq, Int -> CodeHookSpecificationProperty -> ShowS
[CodeHookSpecificationProperty] -> ShowS
CodeHookSpecificationProperty -> String
(Int -> CodeHookSpecificationProperty -> ShowS)
-> (CodeHookSpecificationProperty -> String)
-> ([CodeHookSpecificationProperty] -> ShowS)
-> Show CodeHookSpecificationProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> CodeHookSpecificationProperty -> ShowS
showsPrec :: Int -> CodeHookSpecificationProperty -> ShowS
$cshow :: CodeHookSpecificationProperty -> String
show :: CodeHookSpecificationProperty -> String
$cshowList :: [CodeHookSpecificationProperty] -> ShowS
showList :: [CodeHookSpecificationProperty] -> ShowS
Prelude.Show)
mkCodeHookSpecificationProperty ::
LambdaCodeHookProperty -> CodeHookSpecificationProperty
mkCodeHookSpecificationProperty :: LambdaCodeHookProperty -> CodeHookSpecificationProperty
mkCodeHookSpecificationProperty LambdaCodeHookProperty
lambdaCodeHook
= CodeHookSpecificationProperty
{haddock_workaround_ :: ()
haddock_workaround_ = (), lambdaCodeHook :: LambdaCodeHookProperty
lambdaCodeHook = LambdaCodeHookProperty
lambdaCodeHook}
instance ToResourceProperties CodeHookSpecificationProperty where
toResourceProperties :: CodeHookSpecificationProperty -> ResourceProperties
toResourceProperties CodeHookSpecificationProperty {()
LambdaCodeHookProperty
haddock_workaround_ :: CodeHookSpecificationProperty -> ()
lambdaCodeHook :: CodeHookSpecificationProperty -> LambdaCodeHookProperty
haddock_workaround_ :: ()
lambdaCodeHook :: LambdaCodeHookProperty
..}
= ResourceProperties
{awsType :: Text
awsType = Text
"AWS::Lex::Bot.CodeHookSpecification",
supportsTags :: Bool
supportsTags = Bool
Prelude.False,
properties :: Object
properties = [Key
"LambdaCodeHook" Key -> LambdaCodeHookProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
JSON..= LambdaCodeHookProperty
lambdaCodeHook]}
instance JSON.ToJSON CodeHookSpecificationProperty where
toJSON :: CodeHookSpecificationProperty -> Value
toJSON CodeHookSpecificationProperty {()
LambdaCodeHookProperty
haddock_workaround_ :: CodeHookSpecificationProperty -> ()
lambdaCodeHook :: CodeHookSpecificationProperty -> LambdaCodeHookProperty
haddock_workaround_ :: ()
lambdaCodeHook :: LambdaCodeHookProperty
..}
= [(Key, Value)] -> Value
JSON.object [Key
"LambdaCodeHook" Key -> LambdaCodeHookProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
JSON..= LambdaCodeHookProperty
lambdaCodeHook]
instance Property "LambdaCodeHook" CodeHookSpecificationProperty where
type PropertyType "LambdaCodeHook" CodeHookSpecificationProperty = LambdaCodeHookProperty
set :: PropertyType "LambdaCodeHook" CodeHookSpecificationProperty
-> CodeHookSpecificationProperty -> CodeHookSpecificationProperty
set PropertyType "LambdaCodeHook" CodeHookSpecificationProperty
newValue CodeHookSpecificationProperty {()
LambdaCodeHookProperty
haddock_workaround_ :: CodeHookSpecificationProperty -> ()
lambdaCodeHook :: CodeHookSpecificationProperty -> LambdaCodeHookProperty
haddock_workaround_ :: ()
lambdaCodeHook :: LambdaCodeHookProperty
..}
= CodeHookSpecificationProperty {lambdaCodeHook :: LambdaCodeHookProperty
lambdaCodeHook = PropertyType "LambdaCodeHook" CodeHookSpecificationProperty
LambdaCodeHookProperty
newValue, ()
haddock_workaround_ :: ()
haddock_workaround_ :: ()
..}