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