module Stratosphere.Connect.Rule.CreateCaseActionProperty (
module Exports, CreateCaseActionProperty(..),
mkCreateCaseActionProperty
) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import {-# SOURCE #-} Stratosphere.Connect.Rule.FieldProperty as Exports
import Stratosphere.ResourceProperties
import Stratosphere.Value
data CreateCaseActionProperty
=
CreateCaseActionProperty {CreateCaseActionProperty -> ()
haddock_workaround_ :: (),
CreateCaseActionProperty -> [FieldProperty]
fields :: [FieldProperty],
CreateCaseActionProperty -> Value Text
templateId :: (Value Prelude.Text)}
deriving stock (CreateCaseActionProperty -> CreateCaseActionProperty -> Bool
(CreateCaseActionProperty -> CreateCaseActionProperty -> Bool)
-> (CreateCaseActionProperty -> CreateCaseActionProperty -> Bool)
-> Eq CreateCaseActionProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: CreateCaseActionProperty -> CreateCaseActionProperty -> Bool
== :: CreateCaseActionProperty -> CreateCaseActionProperty -> Bool
$c/= :: CreateCaseActionProperty -> CreateCaseActionProperty -> Bool
/= :: CreateCaseActionProperty -> CreateCaseActionProperty -> Bool
Prelude.Eq, Int -> CreateCaseActionProperty -> ShowS
[CreateCaseActionProperty] -> ShowS
CreateCaseActionProperty -> String
(Int -> CreateCaseActionProperty -> ShowS)
-> (CreateCaseActionProperty -> String)
-> ([CreateCaseActionProperty] -> ShowS)
-> Show CreateCaseActionProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> CreateCaseActionProperty -> ShowS
showsPrec :: Int -> CreateCaseActionProperty -> ShowS
$cshow :: CreateCaseActionProperty -> String
show :: CreateCaseActionProperty -> String
$cshowList :: [CreateCaseActionProperty] -> ShowS
showList :: [CreateCaseActionProperty] -> ShowS
Prelude.Show)
mkCreateCaseActionProperty ::
[FieldProperty] -> Value Prelude.Text -> CreateCaseActionProperty
mkCreateCaseActionProperty :: [FieldProperty] -> Value Text -> CreateCaseActionProperty
mkCreateCaseActionProperty [FieldProperty]
fields Value Text
templateId
= CreateCaseActionProperty
{haddock_workaround_ :: ()
haddock_workaround_ = (), fields :: [FieldProperty]
fields = [FieldProperty]
fields,
templateId :: Value Text
templateId = Value Text
templateId}
instance ToResourceProperties CreateCaseActionProperty where
toResourceProperties :: CreateCaseActionProperty -> ResourceProperties
toResourceProperties CreateCaseActionProperty {[FieldProperty]
()
Value Text
haddock_workaround_ :: CreateCaseActionProperty -> ()
fields :: CreateCaseActionProperty -> [FieldProperty]
templateId :: CreateCaseActionProperty -> Value Text
haddock_workaround_ :: ()
fields :: [FieldProperty]
templateId :: Value Text
..}
= ResourceProperties
{awsType :: Text
awsType = Text
"AWS::Connect::Rule.CreateCaseAction",
supportsTags :: Bool
supportsTags = Bool
Prelude.False,
properties :: Object
properties = [Key
"Fields" Key -> [FieldProperty] -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
JSON..= [FieldProperty]
fields,
Key
"TemplateId" 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
templateId]}
instance JSON.ToJSON CreateCaseActionProperty where
toJSON :: CreateCaseActionProperty -> Value
toJSON CreateCaseActionProperty {[FieldProperty]
()
Value Text
haddock_workaround_ :: CreateCaseActionProperty -> ()
fields :: CreateCaseActionProperty -> [FieldProperty]
templateId :: CreateCaseActionProperty -> Value Text
haddock_workaround_ :: ()
fields :: [FieldProperty]
templateId :: Value Text
..}
= [(Key, Value)] -> Value
JSON.object
[Key
"Fields" Key -> [FieldProperty] -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
JSON..= [FieldProperty]
fields, Key
"TemplateId" 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
templateId]
instance Property "Fields" CreateCaseActionProperty where
type PropertyType "Fields" CreateCaseActionProperty = [FieldProperty]
set :: PropertyType "Fields" CreateCaseActionProperty
-> CreateCaseActionProperty -> CreateCaseActionProperty
set PropertyType "Fields" CreateCaseActionProperty
newValue CreateCaseActionProperty {[FieldProperty]
()
Value Text
haddock_workaround_ :: CreateCaseActionProperty -> ()
fields :: CreateCaseActionProperty -> [FieldProperty]
templateId :: CreateCaseActionProperty -> Value Text
haddock_workaround_ :: ()
fields :: [FieldProperty]
templateId :: Value Text
..}
= CreateCaseActionProperty {fields :: [FieldProperty]
fields = [FieldProperty]
PropertyType "Fields" CreateCaseActionProperty
newValue, ()
Value Text
haddock_workaround_ :: ()
templateId :: Value Text
haddock_workaround_ :: ()
templateId :: Value Text
..}
instance Property "TemplateId" CreateCaseActionProperty where
type PropertyType "TemplateId" CreateCaseActionProperty = Value Prelude.Text
set :: PropertyType "TemplateId" CreateCaseActionProperty
-> CreateCaseActionProperty -> CreateCaseActionProperty
set PropertyType "TemplateId" CreateCaseActionProperty
newValue CreateCaseActionProperty {[FieldProperty]
()
Value Text
haddock_workaround_ :: CreateCaseActionProperty -> ()
fields :: CreateCaseActionProperty -> [FieldProperty]
templateId :: CreateCaseActionProperty -> Value Text
haddock_workaround_ :: ()
fields :: [FieldProperty]
templateId :: Value Text
..}
= CreateCaseActionProperty {templateId :: Value Text
templateId = PropertyType "TemplateId" CreateCaseActionProperty
Value Text
newValue, [FieldProperty]
()
haddock_workaround_ :: ()
fields :: [FieldProperty]
haddock_workaround_ :: ()
fields :: [FieldProperty]
..}