module Stratosphere.Chatbot.CustomAction.CustomActionAttachmentCriteriaProperty (
CustomActionAttachmentCriteriaProperty(..),
mkCustomActionAttachmentCriteriaProperty
) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data CustomActionAttachmentCriteriaProperty
=
CustomActionAttachmentCriteriaProperty {CustomActionAttachmentCriteriaProperty -> ()
haddock_workaround_ :: (),
CustomActionAttachmentCriteriaProperty -> Value Text
operator :: (Value Prelude.Text),
CustomActionAttachmentCriteriaProperty -> Maybe (Value Text)
value :: (Prelude.Maybe (Value Prelude.Text)),
CustomActionAttachmentCriteriaProperty -> Value Text
variableName :: (Value Prelude.Text)}
deriving stock (CustomActionAttachmentCriteriaProperty
-> CustomActionAttachmentCriteriaProperty -> Bool
(CustomActionAttachmentCriteriaProperty
-> CustomActionAttachmentCriteriaProperty -> Bool)
-> (CustomActionAttachmentCriteriaProperty
-> CustomActionAttachmentCriteriaProperty -> Bool)
-> Eq CustomActionAttachmentCriteriaProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: CustomActionAttachmentCriteriaProperty
-> CustomActionAttachmentCriteriaProperty -> Bool
== :: CustomActionAttachmentCriteriaProperty
-> CustomActionAttachmentCriteriaProperty -> Bool
$c/= :: CustomActionAttachmentCriteriaProperty
-> CustomActionAttachmentCriteriaProperty -> Bool
/= :: CustomActionAttachmentCriteriaProperty
-> CustomActionAttachmentCriteriaProperty -> Bool
Prelude.Eq, Int -> CustomActionAttachmentCriteriaProperty -> ShowS
[CustomActionAttachmentCriteriaProperty] -> ShowS
CustomActionAttachmentCriteriaProperty -> String
(Int -> CustomActionAttachmentCriteriaProperty -> ShowS)
-> (CustomActionAttachmentCriteriaProperty -> String)
-> ([CustomActionAttachmentCriteriaProperty] -> ShowS)
-> Show CustomActionAttachmentCriteriaProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> CustomActionAttachmentCriteriaProperty -> ShowS
showsPrec :: Int -> CustomActionAttachmentCriteriaProperty -> ShowS
$cshow :: CustomActionAttachmentCriteriaProperty -> String
show :: CustomActionAttachmentCriteriaProperty -> String
$cshowList :: [CustomActionAttachmentCriteriaProperty] -> ShowS
showList :: [CustomActionAttachmentCriteriaProperty] -> ShowS
Prelude.Show)
mkCustomActionAttachmentCriteriaProperty ::
Value Prelude.Text
-> Value Prelude.Text -> CustomActionAttachmentCriteriaProperty
mkCustomActionAttachmentCriteriaProperty :: Value Text -> Value Text -> CustomActionAttachmentCriteriaProperty
mkCustomActionAttachmentCriteriaProperty Value Text
operator Value Text
variableName
= CustomActionAttachmentCriteriaProperty
{haddock_workaround_ :: ()
haddock_workaround_ = (), operator :: Value Text
operator = Value Text
operator,
variableName :: Value Text
variableName = Value Text
variableName, value :: Maybe (Value Text)
value = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties CustomActionAttachmentCriteriaProperty where
toResourceProperties :: CustomActionAttachmentCriteriaProperty -> ResourceProperties
toResourceProperties CustomActionAttachmentCriteriaProperty {Maybe (Value Text)
()
Value Text
haddock_workaround_ :: CustomActionAttachmentCriteriaProperty -> ()
operator :: CustomActionAttachmentCriteriaProperty -> Value Text
value :: CustomActionAttachmentCriteriaProperty -> Maybe (Value Text)
variableName :: CustomActionAttachmentCriteriaProperty -> Value Text
haddock_workaround_ :: ()
operator :: Value Text
value :: Maybe (Value Text)
variableName :: Value Text
..}
= ResourceProperties
{awsType :: Text
awsType = Text
"AWS::Chatbot::CustomAction.CustomActionAttachmentCriteria",
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
"Operator" 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
operator, Key
"VariableName" 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
variableName]
([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
"Value" (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)
value]))}
instance JSON.ToJSON CustomActionAttachmentCriteriaProperty where
toJSON :: CustomActionAttachmentCriteriaProperty -> Value
toJSON CustomActionAttachmentCriteriaProperty {Maybe (Value Text)
()
Value Text
haddock_workaround_ :: CustomActionAttachmentCriteriaProperty -> ()
operator :: CustomActionAttachmentCriteriaProperty -> Value Text
value :: CustomActionAttachmentCriteriaProperty -> Maybe (Value Text)
variableName :: CustomActionAttachmentCriteriaProperty -> Value Text
haddock_workaround_ :: ()
operator :: Value Text
value :: Maybe (Value Text)
variableName :: 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
"Operator" 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
operator, Key
"VariableName" 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
variableName]
([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
"Value" (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)
value])))
instance Property "Operator" CustomActionAttachmentCriteriaProperty where
type PropertyType "Operator" CustomActionAttachmentCriteriaProperty = Value Prelude.Text
set :: PropertyType "Operator" CustomActionAttachmentCriteriaProperty
-> CustomActionAttachmentCriteriaProperty
-> CustomActionAttachmentCriteriaProperty
set PropertyType "Operator" CustomActionAttachmentCriteriaProperty
newValue CustomActionAttachmentCriteriaProperty {Maybe (Value Text)
()
Value Text
haddock_workaround_ :: CustomActionAttachmentCriteriaProperty -> ()
operator :: CustomActionAttachmentCriteriaProperty -> Value Text
value :: CustomActionAttachmentCriteriaProperty -> Maybe (Value Text)
variableName :: CustomActionAttachmentCriteriaProperty -> Value Text
haddock_workaround_ :: ()
operator :: Value Text
value :: Maybe (Value Text)
variableName :: Value Text
..}
= CustomActionAttachmentCriteriaProperty {operator :: Value Text
operator = PropertyType "Operator" CustomActionAttachmentCriteriaProperty
Value Text
newValue, Maybe (Value Text)
()
Value Text
haddock_workaround_ :: ()
value :: Maybe (Value Text)
variableName :: Value Text
haddock_workaround_ :: ()
value :: Maybe (Value Text)
variableName :: Value Text
..}
instance Property "Value" CustomActionAttachmentCriteriaProperty where
type PropertyType "Value" CustomActionAttachmentCriteriaProperty = Value Prelude.Text
set :: PropertyType "Value" CustomActionAttachmentCriteriaProperty
-> CustomActionAttachmentCriteriaProperty
-> CustomActionAttachmentCriteriaProperty
set PropertyType "Value" CustomActionAttachmentCriteriaProperty
newValue CustomActionAttachmentCriteriaProperty {Maybe (Value Text)
()
Value Text
haddock_workaround_ :: CustomActionAttachmentCriteriaProperty -> ()
operator :: CustomActionAttachmentCriteriaProperty -> Value Text
value :: CustomActionAttachmentCriteriaProperty -> Maybe (Value Text)
variableName :: CustomActionAttachmentCriteriaProperty -> Value Text
haddock_workaround_ :: ()
operator :: Value Text
value :: Maybe (Value Text)
variableName :: Value Text
..}
= CustomActionAttachmentCriteriaProperty
{value :: Maybe (Value Text)
value = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "Value" CustomActionAttachmentCriteriaProperty
Value Text
newValue, ()
Value Text
haddock_workaround_ :: ()
operator :: Value Text
variableName :: Value Text
haddock_workaround_ :: ()
operator :: Value Text
variableName :: Value Text
..}
instance Property "VariableName" CustomActionAttachmentCriteriaProperty where
type PropertyType "VariableName" CustomActionAttachmentCriteriaProperty = Value Prelude.Text
set :: PropertyType "VariableName" CustomActionAttachmentCriteriaProperty
-> CustomActionAttachmentCriteriaProperty
-> CustomActionAttachmentCriteriaProperty
set PropertyType "VariableName" CustomActionAttachmentCriteriaProperty
newValue CustomActionAttachmentCriteriaProperty {Maybe (Value Text)
()
Value Text
haddock_workaround_ :: CustomActionAttachmentCriteriaProperty -> ()
operator :: CustomActionAttachmentCriteriaProperty -> Value Text
value :: CustomActionAttachmentCriteriaProperty -> Maybe (Value Text)
variableName :: CustomActionAttachmentCriteriaProperty -> Value Text
haddock_workaround_ :: ()
operator :: Value Text
value :: Maybe (Value Text)
variableName :: Value Text
..}
= CustomActionAttachmentCriteriaProperty
{variableName :: Value Text
variableName = PropertyType "VariableName" CustomActionAttachmentCriteriaProperty
Value Text
newValue, Maybe (Value Text)
()
Value Text
haddock_workaround_ :: ()
operator :: Value Text
value :: Maybe (Value Text)
haddock_workaround_ :: ()
operator :: Value Text
value :: Maybe (Value Text)
..}