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