module Stratosphere.Lex.Bot.SlotValueRegexFilterProperty (
SlotValueRegexFilterProperty(..), mkSlotValueRegexFilterProperty
) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data SlotValueRegexFilterProperty
=
SlotValueRegexFilterProperty {SlotValueRegexFilterProperty -> ()
haddock_workaround_ :: (),
SlotValueRegexFilterProperty -> Value Text
pattern :: (Value Prelude.Text)}
deriving stock (SlotValueRegexFilterProperty
-> SlotValueRegexFilterProperty -> Bool
(SlotValueRegexFilterProperty
-> SlotValueRegexFilterProperty -> Bool)
-> (SlotValueRegexFilterProperty
-> SlotValueRegexFilterProperty -> Bool)
-> Eq SlotValueRegexFilterProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: SlotValueRegexFilterProperty
-> SlotValueRegexFilterProperty -> Bool
== :: SlotValueRegexFilterProperty
-> SlotValueRegexFilterProperty -> Bool
$c/= :: SlotValueRegexFilterProperty
-> SlotValueRegexFilterProperty -> Bool
/= :: SlotValueRegexFilterProperty
-> SlotValueRegexFilterProperty -> Bool
Prelude.Eq, Int -> SlotValueRegexFilterProperty -> ShowS
[SlotValueRegexFilterProperty] -> ShowS
SlotValueRegexFilterProperty -> String
(Int -> SlotValueRegexFilterProperty -> ShowS)
-> (SlotValueRegexFilterProperty -> String)
-> ([SlotValueRegexFilterProperty] -> ShowS)
-> Show SlotValueRegexFilterProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> SlotValueRegexFilterProperty -> ShowS
showsPrec :: Int -> SlotValueRegexFilterProperty -> ShowS
$cshow :: SlotValueRegexFilterProperty -> String
show :: SlotValueRegexFilterProperty -> String
$cshowList :: [SlotValueRegexFilterProperty] -> ShowS
showList :: [SlotValueRegexFilterProperty] -> ShowS
Prelude.Show)
mkSlotValueRegexFilterProperty ::
Value Prelude.Text -> SlotValueRegexFilterProperty
mkSlotValueRegexFilterProperty :: Value Text -> SlotValueRegexFilterProperty
mkSlotValueRegexFilterProperty Value Text
pattern
= SlotValueRegexFilterProperty
{haddock_workaround_ :: ()
haddock_workaround_ = (), pattern :: Value Text
pattern = Value Text
pattern}
instance ToResourceProperties SlotValueRegexFilterProperty where
toResourceProperties :: SlotValueRegexFilterProperty -> ResourceProperties
toResourceProperties SlotValueRegexFilterProperty {()
Value Text
haddock_workaround_ :: SlotValueRegexFilterProperty -> ()
pattern :: SlotValueRegexFilterProperty -> Value Text
haddock_workaround_ :: ()
pattern :: Value Text
..}
= ResourceProperties
{awsType :: Text
awsType = Text
"AWS::Lex::Bot.SlotValueRegexFilter",
supportsTags :: Bool
supportsTags = Bool
Prelude.False,
properties :: Object
properties = [Key
"Pattern" 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
pattern]}
instance JSON.ToJSON SlotValueRegexFilterProperty where
toJSON :: SlotValueRegexFilterProperty -> Value
toJSON SlotValueRegexFilterProperty {()
Value Text
haddock_workaround_ :: SlotValueRegexFilterProperty -> ()
pattern :: SlotValueRegexFilterProperty -> Value Text
haddock_workaround_ :: ()
pattern :: Value Text
..}
= [(Key, Value)] -> Value
JSON.object [Key
"Pattern" 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
pattern]
instance Property "Pattern" SlotValueRegexFilterProperty where
type PropertyType "Pattern" SlotValueRegexFilterProperty = Value Prelude.Text
set :: PropertyType "Pattern" SlotValueRegexFilterProperty
-> SlotValueRegexFilterProperty -> SlotValueRegexFilterProperty
set PropertyType "Pattern" SlotValueRegexFilterProperty
newValue SlotValueRegexFilterProperty {()
Value Text
haddock_workaround_ :: SlotValueRegexFilterProperty -> ()
pattern :: SlotValueRegexFilterProperty -> Value Text
haddock_workaround_ :: ()
pattern :: Value Text
..}
= SlotValueRegexFilterProperty {pattern :: Value Text
pattern = PropertyType "Pattern" SlotValueRegexFilterProperty
Value Text
newValue, ()
haddock_workaround_ :: ()
haddock_workaround_ :: ()
..}