module Stratosphere.Lex.Bot.PromptAttemptSpecificationProperty (
module Exports, PromptAttemptSpecificationProperty(..),
mkPromptAttemptSpecificationProperty
) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import {-# SOURCE #-} Stratosphere.Lex.Bot.AllowedInputTypesProperty as Exports
import {-# SOURCE #-} Stratosphere.Lex.Bot.AudioAndDTMFInputSpecificationProperty as Exports
import {-# SOURCE #-} Stratosphere.Lex.Bot.TextInputSpecificationProperty as Exports
import Stratosphere.ResourceProperties
import Stratosphere.Value
data PromptAttemptSpecificationProperty
=
PromptAttemptSpecificationProperty {PromptAttemptSpecificationProperty -> ()
haddock_workaround_ :: (),
PromptAttemptSpecificationProperty -> Maybe (Value Bool)
allowInterrupt :: (Prelude.Maybe (Value Prelude.Bool)),
PromptAttemptSpecificationProperty -> AllowedInputTypesProperty
allowedInputTypes :: AllowedInputTypesProperty,
PromptAttemptSpecificationProperty
-> Maybe AudioAndDTMFInputSpecificationProperty
audioAndDTMFInputSpecification :: (Prelude.Maybe AudioAndDTMFInputSpecificationProperty),
PromptAttemptSpecificationProperty
-> Maybe TextInputSpecificationProperty
textInputSpecification :: (Prelude.Maybe TextInputSpecificationProperty)}
deriving stock (PromptAttemptSpecificationProperty
-> PromptAttemptSpecificationProperty -> Bool
(PromptAttemptSpecificationProperty
-> PromptAttemptSpecificationProperty -> Bool)
-> (PromptAttemptSpecificationProperty
-> PromptAttemptSpecificationProperty -> Bool)
-> Eq PromptAttemptSpecificationProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: PromptAttemptSpecificationProperty
-> PromptAttemptSpecificationProperty -> Bool
== :: PromptAttemptSpecificationProperty
-> PromptAttemptSpecificationProperty -> Bool
$c/= :: PromptAttemptSpecificationProperty
-> PromptAttemptSpecificationProperty -> Bool
/= :: PromptAttemptSpecificationProperty
-> PromptAttemptSpecificationProperty -> Bool
Prelude.Eq, Int -> PromptAttemptSpecificationProperty -> ShowS
[PromptAttemptSpecificationProperty] -> ShowS
PromptAttemptSpecificationProperty -> String
(Int -> PromptAttemptSpecificationProperty -> ShowS)
-> (PromptAttemptSpecificationProperty -> String)
-> ([PromptAttemptSpecificationProperty] -> ShowS)
-> Show PromptAttemptSpecificationProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> PromptAttemptSpecificationProperty -> ShowS
showsPrec :: Int -> PromptAttemptSpecificationProperty -> ShowS
$cshow :: PromptAttemptSpecificationProperty -> String
show :: PromptAttemptSpecificationProperty -> String
$cshowList :: [PromptAttemptSpecificationProperty] -> ShowS
showList :: [PromptAttemptSpecificationProperty] -> ShowS
Prelude.Show)
mkPromptAttemptSpecificationProperty ::
AllowedInputTypesProperty -> PromptAttemptSpecificationProperty
mkPromptAttemptSpecificationProperty :: AllowedInputTypesProperty -> PromptAttemptSpecificationProperty
mkPromptAttemptSpecificationProperty AllowedInputTypesProperty
allowedInputTypes
= PromptAttemptSpecificationProperty
{haddock_workaround_ :: ()
haddock_workaround_ = (), allowedInputTypes :: AllowedInputTypesProperty
allowedInputTypes = AllowedInputTypesProperty
allowedInputTypes,
allowInterrupt :: Maybe (Value Bool)
allowInterrupt = Maybe (Value Bool)
forall a. Maybe a
Prelude.Nothing,
audioAndDTMFInputSpecification :: Maybe AudioAndDTMFInputSpecificationProperty
audioAndDTMFInputSpecification = Maybe AudioAndDTMFInputSpecificationProperty
forall a. Maybe a
Prelude.Nothing,
textInputSpecification :: Maybe TextInputSpecificationProperty
textInputSpecification = Maybe TextInputSpecificationProperty
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties PromptAttemptSpecificationProperty where
toResourceProperties :: PromptAttemptSpecificationProperty -> ResourceProperties
toResourceProperties PromptAttemptSpecificationProperty {Maybe (Value Bool)
Maybe AudioAndDTMFInputSpecificationProperty
Maybe TextInputSpecificationProperty
()
AllowedInputTypesProperty
haddock_workaround_ :: PromptAttemptSpecificationProperty -> ()
allowInterrupt :: PromptAttemptSpecificationProperty -> Maybe (Value Bool)
allowedInputTypes :: PromptAttemptSpecificationProperty -> AllowedInputTypesProperty
audioAndDTMFInputSpecification :: PromptAttemptSpecificationProperty
-> Maybe AudioAndDTMFInputSpecificationProperty
textInputSpecification :: PromptAttemptSpecificationProperty
-> Maybe TextInputSpecificationProperty
haddock_workaround_ :: ()
allowInterrupt :: Maybe (Value Bool)
allowedInputTypes :: AllowedInputTypesProperty
audioAndDTMFInputSpecification :: Maybe AudioAndDTMFInputSpecificationProperty
textInputSpecification :: Maybe TextInputSpecificationProperty
..}
= ResourceProperties
{awsType :: Text
awsType = Text
"AWS::Lex::Bot.PromptAttemptSpecification",
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
"AllowedInputTypes" Key -> AllowedInputTypesProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
JSON..= AllowedInputTypesProperty
allowedInputTypes]
([Maybe (Key, Value)] -> [(Key, Value)]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
[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..=) Key
"AllowInterrupt" (Value Bool -> (Key, Value))
-> Maybe (Value Bool) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Bool)
allowInterrupt,
Key -> AudioAndDTMFInputSpecificationProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"AudioAndDTMFInputSpecification"
(AudioAndDTMFInputSpecificationProperty -> (Key, Value))
-> Maybe AudioAndDTMFInputSpecificationProperty
-> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe AudioAndDTMFInputSpecificationProperty
audioAndDTMFInputSpecification,
Key -> TextInputSpecificationProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"TextInputSpecification"
(TextInputSpecificationProperty -> (Key, Value))
-> Maybe TextInputSpecificationProperty -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe TextInputSpecificationProperty
textInputSpecification]))}
instance JSON.ToJSON PromptAttemptSpecificationProperty where
toJSON :: PromptAttemptSpecificationProperty -> Value
toJSON PromptAttemptSpecificationProperty {Maybe (Value Bool)
Maybe AudioAndDTMFInputSpecificationProperty
Maybe TextInputSpecificationProperty
()
AllowedInputTypesProperty
haddock_workaround_ :: PromptAttemptSpecificationProperty -> ()
allowInterrupt :: PromptAttemptSpecificationProperty -> Maybe (Value Bool)
allowedInputTypes :: PromptAttemptSpecificationProperty -> AllowedInputTypesProperty
audioAndDTMFInputSpecification :: PromptAttemptSpecificationProperty
-> Maybe AudioAndDTMFInputSpecificationProperty
textInputSpecification :: PromptAttemptSpecificationProperty
-> Maybe TextInputSpecificationProperty
haddock_workaround_ :: ()
allowInterrupt :: Maybe (Value Bool)
allowedInputTypes :: AllowedInputTypesProperty
audioAndDTMFInputSpecification :: Maybe AudioAndDTMFInputSpecificationProperty
textInputSpecification :: Maybe TextInputSpecificationProperty
..}
= [(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
"AllowedInputTypes" Key -> AllowedInputTypesProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
JSON..= AllowedInputTypesProperty
allowedInputTypes]
([Maybe (Key, Value)] -> [(Key, Value)]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
[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..=) Key
"AllowInterrupt" (Value Bool -> (Key, Value))
-> Maybe (Value Bool) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Bool)
allowInterrupt,
Key -> AudioAndDTMFInputSpecificationProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"AudioAndDTMFInputSpecification"
(AudioAndDTMFInputSpecificationProperty -> (Key, Value))
-> Maybe AudioAndDTMFInputSpecificationProperty
-> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe AudioAndDTMFInputSpecificationProperty
audioAndDTMFInputSpecification,
Key -> TextInputSpecificationProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"TextInputSpecification"
(TextInputSpecificationProperty -> (Key, Value))
-> Maybe TextInputSpecificationProperty -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe TextInputSpecificationProperty
textInputSpecification])))
instance Property "AllowInterrupt" PromptAttemptSpecificationProperty where
type PropertyType "AllowInterrupt" PromptAttemptSpecificationProperty = Value Prelude.Bool
set :: PropertyType "AllowInterrupt" PromptAttemptSpecificationProperty
-> PromptAttemptSpecificationProperty
-> PromptAttemptSpecificationProperty
set PropertyType "AllowInterrupt" PromptAttemptSpecificationProperty
newValue PromptAttemptSpecificationProperty {Maybe (Value Bool)
Maybe AudioAndDTMFInputSpecificationProperty
Maybe TextInputSpecificationProperty
()
AllowedInputTypesProperty
haddock_workaround_ :: PromptAttemptSpecificationProperty -> ()
allowInterrupt :: PromptAttemptSpecificationProperty -> Maybe (Value Bool)
allowedInputTypes :: PromptAttemptSpecificationProperty -> AllowedInputTypesProperty
audioAndDTMFInputSpecification :: PromptAttemptSpecificationProperty
-> Maybe AudioAndDTMFInputSpecificationProperty
textInputSpecification :: PromptAttemptSpecificationProperty
-> Maybe TextInputSpecificationProperty
haddock_workaround_ :: ()
allowInterrupt :: Maybe (Value Bool)
allowedInputTypes :: AllowedInputTypesProperty
audioAndDTMFInputSpecification :: Maybe AudioAndDTMFInputSpecificationProperty
textInputSpecification :: Maybe TextInputSpecificationProperty
..}
= PromptAttemptSpecificationProperty
{allowInterrupt :: Maybe (Value Bool)
allowInterrupt = Value Bool -> Maybe (Value Bool)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "AllowInterrupt" PromptAttemptSpecificationProperty
Value Bool
newValue, Maybe AudioAndDTMFInputSpecificationProperty
Maybe TextInputSpecificationProperty
()
AllowedInputTypesProperty
haddock_workaround_ :: ()
allowedInputTypes :: AllowedInputTypesProperty
audioAndDTMFInputSpecification :: Maybe AudioAndDTMFInputSpecificationProperty
textInputSpecification :: Maybe TextInputSpecificationProperty
haddock_workaround_ :: ()
allowedInputTypes :: AllowedInputTypesProperty
audioAndDTMFInputSpecification :: Maybe AudioAndDTMFInputSpecificationProperty
textInputSpecification :: Maybe TextInputSpecificationProperty
..}
instance Property "AllowedInputTypes" PromptAttemptSpecificationProperty where
type PropertyType "AllowedInputTypes" PromptAttemptSpecificationProperty = AllowedInputTypesProperty
set :: PropertyType "AllowedInputTypes" PromptAttemptSpecificationProperty
-> PromptAttemptSpecificationProperty
-> PromptAttemptSpecificationProperty
set PropertyType "AllowedInputTypes" PromptAttemptSpecificationProperty
newValue PromptAttemptSpecificationProperty {Maybe (Value Bool)
Maybe AudioAndDTMFInputSpecificationProperty
Maybe TextInputSpecificationProperty
()
AllowedInputTypesProperty
haddock_workaround_ :: PromptAttemptSpecificationProperty -> ()
allowInterrupt :: PromptAttemptSpecificationProperty -> Maybe (Value Bool)
allowedInputTypes :: PromptAttemptSpecificationProperty -> AllowedInputTypesProperty
audioAndDTMFInputSpecification :: PromptAttemptSpecificationProperty
-> Maybe AudioAndDTMFInputSpecificationProperty
textInputSpecification :: PromptAttemptSpecificationProperty
-> Maybe TextInputSpecificationProperty
haddock_workaround_ :: ()
allowInterrupt :: Maybe (Value Bool)
allowedInputTypes :: AllowedInputTypesProperty
audioAndDTMFInputSpecification :: Maybe AudioAndDTMFInputSpecificationProperty
textInputSpecification :: Maybe TextInputSpecificationProperty
..}
= PromptAttemptSpecificationProperty
{allowedInputTypes :: AllowedInputTypesProperty
allowedInputTypes = PropertyType "AllowedInputTypes" PromptAttemptSpecificationProperty
AllowedInputTypesProperty
newValue, Maybe (Value Bool)
Maybe AudioAndDTMFInputSpecificationProperty
Maybe TextInputSpecificationProperty
()
haddock_workaround_ :: ()
allowInterrupt :: Maybe (Value Bool)
audioAndDTMFInputSpecification :: Maybe AudioAndDTMFInputSpecificationProperty
textInputSpecification :: Maybe TextInputSpecificationProperty
haddock_workaround_ :: ()
allowInterrupt :: Maybe (Value Bool)
audioAndDTMFInputSpecification :: Maybe AudioAndDTMFInputSpecificationProperty
textInputSpecification :: Maybe TextInputSpecificationProperty
..}
instance Property "AudioAndDTMFInputSpecification" PromptAttemptSpecificationProperty where
type PropertyType "AudioAndDTMFInputSpecification" PromptAttemptSpecificationProperty = AudioAndDTMFInputSpecificationProperty
set :: PropertyType
"AudioAndDTMFInputSpecification" PromptAttemptSpecificationProperty
-> PromptAttemptSpecificationProperty
-> PromptAttemptSpecificationProperty
set PropertyType
"AudioAndDTMFInputSpecification" PromptAttemptSpecificationProperty
newValue PromptAttemptSpecificationProperty {Maybe (Value Bool)
Maybe AudioAndDTMFInputSpecificationProperty
Maybe TextInputSpecificationProperty
()
AllowedInputTypesProperty
haddock_workaround_ :: PromptAttemptSpecificationProperty -> ()
allowInterrupt :: PromptAttemptSpecificationProperty -> Maybe (Value Bool)
allowedInputTypes :: PromptAttemptSpecificationProperty -> AllowedInputTypesProperty
audioAndDTMFInputSpecification :: PromptAttemptSpecificationProperty
-> Maybe AudioAndDTMFInputSpecificationProperty
textInputSpecification :: PromptAttemptSpecificationProperty
-> Maybe TextInputSpecificationProperty
haddock_workaround_ :: ()
allowInterrupt :: Maybe (Value Bool)
allowedInputTypes :: AllowedInputTypesProperty
audioAndDTMFInputSpecification :: Maybe AudioAndDTMFInputSpecificationProperty
textInputSpecification :: Maybe TextInputSpecificationProperty
..}
= PromptAttemptSpecificationProperty
{audioAndDTMFInputSpecification :: Maybe AudioAndDTMFInputSpecificationProperty
audioAndDTMFInputSpecification = AudioAndDTMFInputSpecificationProperty
-> Maybe AudioAndDTMFInputSpecificationProperty
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType
"AudioAndDTMFInputSpecification" PromptAttemptSpecificationProperty
AudioAndDTMFInputSpecificationProperty
newValue, Maybe (Value Bool)
Maybe TextInputSpecificationProperty
()
AllowedInputTypesProperty
haddock_workaround_ :: ()
allowInterrupt :: Maybe (Value Bool)
allowedInputTypes :: AllowedInputTypesProperty
textInputSpecification :: Maybe TextInputSpecificationProperty
haddock_workaround_ :: ()
allowInterrupt :: Maybe (Value Bool)
allowedInputTypes :: AllowedInputTypesProperty
textInputSpecification :: Maybe TextInputSpecificationProperty
..}
instance Property "TextInputSpecification" PromptAttemptSpecificationProperty where
type PropertyType "TextInputSpecification" PromptAttemptSpecificationProperty = TextInputSpecificationProperty
set :: PropertyType
"TextInputSpecification" PromptAttemptSpecificationProperty
-> PromptAttemptSpecificationProperty
-> PromptAttemptSpecificationProperty
set PropertyType
"TextInputSpecification" PromptAttemptSpecificationProperty
newValue PromptAttemptSpecificationProperty {Maybe (Value Bool)
Maybe AudioAndDTMFInputSpecificationProperty
Maybe TextInputSpecificationProperty
()
AllowedInputTypesProperty
haddock_workaround_ :: PromptAttemptSpecificationProperty -> ()
allowInterrupt :: PromptAttemptSpecificationProperty -> Maybe (Value Bool)
allowedInputTypes :: PromptAttemptSpecificationProperty -> AllowedInputTypesProperty
audioAndDTMFInputSpecification :: PromptAttemptSpecificationProperty
-> Maybe AudioAndDTMFInputSpecificationProperty
textInputSpecification :: PromptAttemptSpecificationProperty
-> Maybe TextInputSpecificationProperty
haddock_workaround_ :: ()
allowInterrupt :: Maybe (Value Bool)
allowedInputTypes :: AllowedInputTypesProperty
audioAndDTMFInputSpecification :: Maybe AudioAndDTMFInputSpecificationProperty
textInputSpecification :: Maybe TextInputSpecificationProperty
..}
= PromptAttemptSpecificationProperty
{textInputSpecification :: Maybe TextInputSpecificationProperty
textInputSpecification = TextInputSpecificationProperty
-> Maybe TextInputSpecificationProperty
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType
"TextInputSpecification" PromptAttemptSpecificationProperty
TextInputSpecificationProperty
newValue, Maybe (Value Bool)
Maybe AudioAndDTMFInputSpecificationProperty
()
AllowedInputTypesProperty
haddock_workaround_ :: ()
allowInterrupt :: Maybe (Value Bool)
allowedInputTypes :: AllowedInputTypesProperty
audioAndDTMFInputSpecification :: Maybe AudioAndDTMFInputSpecificationProperty
haddock_workaround_ :: ()
allowInterrupt :: Maybe (Value Bool)
allowedInputTypes :: AllowedInputTypesProperty
audioAndDTMFInputSpecification :: Maybe AudioAndDTMFInputSpecificationProperty
..}