module Stratosphere.Lex.Bot.ElicitationCodeHookInvocationSettingProperty (
        ElicitationCodeHookInvocationSettingProperty(..),
        mkElicitationCodeHookInvocationSettingProperty
    ) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data ElicitationCodeHookInvocationSettingProperty
  = -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-lex-bot-elicitationcodehookinvocationsetting.html>
    ElicitationCodeHookInvocationSettingProperty {ElicitationCodeHookInvocationSettingProperty -> ()
haddock_workaround_ :: (),
                                                  -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-lex-bot-elicitationcodehookinvocationsetting.html#cfn-lex-bot-elicitationcodehookinvocationsetting-enablecodehookinvocation>
                                                  ElicitationCodeHookInvocationSettingProperty -> Value Bool
enableCodeHookInvocation :: (Value Prelude.Bool),
                                                  -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-lex-bot-elicitationcodehookinvocationsetting.html#cfn-lex-bot-elicitationcodehookinvocationsetting-invocationlabel>
                                                  ElicitationCodeHookInvocationSettingProperty -> Maybe (Value Text)
invocationLabel :: (Prelude.Maybe (Value Prelude.Text))}
  deriving stock (ElicitationCodeHookInvocationSettingProperty
-> ElicitationCodeHookInvocationSettingProperty -> Bool
(ElicitationCodeHookInvocationSettingProperty
 -> ElicitationCodeHookInvocationSettingProperty -> Bool)
-> (ElicitationCodeHookInvocationSettingProperty
    -> ElicitationCodeHookInvocationSettingProperty -> Bool)
-> Eq ElicitationCodeHookInvocationSettingProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: ElicitationCodeHookInvocationSettingProperty
-> ElicitationCodeHookInvocationSettingProperty -> Bool
== :: ElicitationCodeHookInvocationSettingProperty
-> ElicitationCodeHookInvocationSettingProperty -> Bool
$c/= :: ElicitationCodeHookInvocationSettingProperty
-> ElicitationCodeHookInvocationSettingProperty -> Bool
/= :: ElicitationCodeHookInvocationSettingProperty
-> ElicitationCodeHookInvocationSettingProperty -> Bool
Prelude.Eq, Int -> ElicitationCodeHookInvocationSettingProperty -> ShowS
[ElicitationCodeHookInvocationSettingProperty] -> ShowS
ElicitationCodeHookInvocationSettingProperty -> String
(Int -> ElicitationCodeHookInvocationSettingProperty -> ShowS)
-> (ElicitationCodeHookInvocationSettingProperty -> String)
-> ([ElicitationCodeHookInvocationSettingProperty] -> ShowS)
-> Show ElicitationCodeHookInvocationSettingProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> ElicitationCodeHookInvocationSettingProperty -> ShowS
showsPrec :: Int -> ElicitationCodeHookInvocationSettingProperty -> ShowS
$cshow :: ElicitationCodeHookInvocationSettingProperty -> String
show :: ElicitationCodeHookInvocationSettingProperty -> String
$cshowList :: [ElicitationCodeHookInvocationSettingProperty] -> ShowS
showList :: [ElicitationCodeHookInvocationSettingProperty] -> ShowS
Prelude.Show)
mkElicitationCodeHookInvocationSettingProperty ::
  Value Prelude.Bool -> ElicitationCodeHookInvocationSettingProperty
mkElicitationCodeHookInvocationSettingProperty :: Value Bool -> ElicitationCodeHookInvocationSettingProperty
mkElicitationCodeHookInvocationSettingProperty
  Value Bool
enableCodeHookInvocation
  = ElicitationCodeHookInvocationSettingProperty
      {haddock_workaround_ :: ()
haddock_workaround_ = (),
       enableCodeHookInvocation :: Value Bool
enableCodeHookInvocation = Value Bool
enableCodeHookInvocation,
       invocationLabel :: Maybe (Value Text)
invocationLabel = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties ElicitationCodeHookInvocationSettingProperty where
  toResourceProperties :: ElicitationCodeHookInvocationSettingProperty -> ResourceProperties
toResourceProperties
    ElicitationCodeHookInvocationSettingProperty {Maybe (Value Text)
()
Value Bool
haddock_workaround_ :: ElicitationCodeHookInvocationSettingProperty -> ()
enableCodeHookInvocation :: ElicitationCodeHookInvocationSettingProperty -> Value Bool
invocationLabel :: ElicitationCodeHookInvocationSettingProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
enableCodeHookInvocation :: Value Bool
invocationLabel :: Maybe (Value Text)
..}
    = ResourceProperties
        {awsType :: Text
awsType = Text
"AWS::Lex::Bot.ElicitationCodeHookInvocationSetting",
         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
"EnableCodeHookInvocation" Key -> Value Bool -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
JSON..= Value Bool
enableCodeHookInvocation]
                           ([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
"InvocationLabel" (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)
invocationLabel]))}
instance JSON.ToJSON ElicitationCodeHookInvocationSettingProperty where
  toJSON :: ElicitationCodeHookInvocationSettingProperty -> Value
toJSON ElicitationCodeHookInvocationSettingProperty {Maybe (Value Text)
()
Value Bool
haddock_workaround_ :: ElicitationCodeHookInvocationSettingProperty -> ()
enableCodeHookInvocation :: ElicitationCodeHookInvocationSettingProperty -> Value Bool
invocationLabel :: ElicitationCodeHookInvocationSettingProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
enableCodeHookInvocation :: Value Bool
invocationLabel :: 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
"EnableCodeHookInvocation" Key -> Value Bool -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
JSON..= Value Bool
enableCodeHookInvocation]
              ([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
"InvocationLabel" (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)
invocationLabel])))
instance Property "EnableCodeHookInvocation" ElicitationCodeHookInvocationSettingProperty where
  type PropertyType "EnableCodeHookInvocation" ElicitationCodeHookInvocationSettingProperty = Value Prelude.Bool
  set :: PropertyType
  "EnableCodeHookInvocation"
  ElicitationCodeHookInvocationSettingProperty
-> ElicitationCodeHookInvocationSettingProperty
-> ElicitationCodeHookInvocationSettingProperty
set PropertyType
  "EnableCodeHookInvocation"
  ElicitationCodeHookInvocationSettingProperty
newValue ElicitationCodeHookInvocationSettingProperty {Maybe (Value Text)
()
Value Bool
haddock_workaround_ :: ElicitationCodeHookInvocationSettingProperty -> ()
enableCodeHookInvocation :: ElicitationCodeHookInvocationSettingProperty -> Value Bool
invocationLabel :: ElicitationCodeHookInvocationSettingProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
enableCodeHookInvocation :: Value Bool
invocationLabel :: Maybe (Value Text)
..}
    = ElicitationCodeHookInvocationSettingProperty
        {enableCodeHookInvocation :: Value Bool
enableCodeHookInvocation = PropertyType
  "EnableCodeHookInvocation"
  ElicitationCodeHookInvocationSettingProperty
Value Bool
newValue, Maybe (Value Text)
()
haddock_workaround_ :: ()
invocationLabel :: Maybe (Value Text)
haddock_workaround_ :: ()
invocationLabel :: Maybe (Value Text)
..}
instance Property "InvocationLabel" ElicitationCodeHookInvocationSettingProperty where
  type PropertyType "InvocationLabel" ElicitationCodeHookInvocationSettingProperty = Value Prelude.Text
  set :: PropertyType
  "InvocationLabel" ElicitationCodeHookInvocationSettingProperty
-> ElicitationCodeHookInvocationSettingProperty
-> ElicitationCodeHookInvocationSettingProperty
set PropertyType
  "InvocationLabel" ElicitationCodeHookInvocationSettingProperty
newValue ElicitationCodeHookInvocationSettingProperty {Maybe (Value Text)
()
Value Bool
haddock_workaround_ :: ElicitationCodeHookInvocationSettingProperty -> ()
enableCodeHookInvocation :: ElicitationCodeHookInvocationSettingProperty -> Value Bool
invocationLabel :: ElicitationCodeHookInvocationSettingProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
enableCodeHookInvocation :: Value Bool
invocationLabel :: Maybe (Value Text)
..}
    = ElicitationCodeHookInvocationSettingProperty
        {invocationLabel :: Maybe (Value Text)
invocationLabel = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType
  "InvocationLabel" ElicitationCodeHookInvocationSettingProperty
Value Text
newValue, ()
Value Bool
haddock_workaround_ :: ()
enableCodeHookInvocation :: Value Bool
haddock_workaround_ :: ()
enableCodeHookInvocation :: Value Bool
..}