module Stratosphere.Connect.ContactFlowModule (
ContactFlowModule(..), mkContactFlowModule
) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Tag
import Stratosphere.Value
data ContactFlowModule
=
ContactFlowModule {ContactFlowModule -> ()
haddock_workaround_ :: (),
ContactFlowModule -> Value Text
content :: (Value Prelude.Text),
ContactFlowModule -> Maybe (Value Text)
description :: (Prelude.Maybe (Value Prelude.Text)),
ContactFlowModule -> Value Text
instanceArn :: (Value Prelude.Text),
ContactFlowModule -> Value Text
name :: (Value Prelude.Text),
ContactFlowModule -> Maybe (Value Text)
state :: (Prelude.Maybe (Value Prelude.Text)),
ContactFlowModule -> Maybe [Tag]
tags :: (Prelude.Maybe [Tag])}
deriving stock (ContactFlowModule -> ContactFlowModule -> Bool
(ContactFlowModule -> ContactFlowModule -> Bool)
-> (ContactFlowModule -> ContactFlowModule -> Bool)
-> Eq ContactFlowModule
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: ContactFlowModule -> ContactFlowModule -> Bool
== :: ContactFlowModule -> ContactFlowModule -> Bool
$c/= :: ContactFlowModule -> ContactFlowModule -> Bool
/= :: ContactFlowModule -> ContactFlowModule -> Bool
Prelude.Eq, Int -> ContactFlowModule -> ShowS
[ContactFlowModule] -> ShowS
ContactFlowModule -> String
(Int -> ContactFlowModule -> ShowS)
-> (ContactFlowModule -> String)
-> ([ContactFlowModule] -> ShowS)
-> Show ContactFlowModule
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> ContactFlowModule -> ShowS
showsPrec :: Int -> ContactFlowModule -> ShowS
$cshow :: ContactFlowModule -> String
show :: ContactFlowModule -> String
$cshowList :: [ContactFlowModule] -> ShowS
showList :: [ContactFlowModule] -> ShowS
Prelude.Show)
mkContactFlowModule ::
Value Prelude.Text
-> Value Prelude.Text -> Value Prelude.Text -> ContactFlowModule
mkContactFlowModule :: Value Text -> Value Text -> Value Text -> ContactFlowModule
mkContactFlowModule Value Text
content Value Text
instanceArn Value Text
name
= ContactFlowModule
{haddock_workaround_ :: ()
haddock_workaround_ = (), content :: Value Text
content = Value Text
content,
instanceArn :: Value Text
instanceArn = Value Text
instanceArn, name :: Value Text
name = Value Text
name,
description :: Maybe (Value Text)
description = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing, state :: Maybe (Value Text)
state = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing,
tags :: Maybe [Tag]
tags = Maybe [Tag]
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties ContactFlowModule where
toResourceProperties :: ContactFlowModule -> ResourceProperties
toResourceProperties ContactFlowModule {Maybe [Tag]
Maybe (Value Text)
()
Value Text
haddock_workaround_ :: ContactFlowModule -> ()
content :: ContactFlowModule -> Value Text
description :: ContactFlowModule -> Maybe (Value Text)
instanceArn :: ContactFlowModule -> Value Text
name :: ContactFlowModule -> Value Text
state :: ContactFlowModule -> Maybe (Value Text)
tags :: ContactFlowModule -> Maybe [Tag]
haddock_workaround_ :: ()
content :: Value Text
description :: Maybe (Value Text)
instanceArn :: Value Text
name :: Value Text
state :: Maybe (Value Text)
tags :: Maybe [Tag]
..}
= ResourceProperties
{awsType :: Text
awsType = Text
"AWS::Connect::ContactFlowModule",
supportsTags :: Bool
supportsTags = Bool
Prelude.True,
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
"Content" 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
content, Key
"InstanceArn" 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
instanceArn,
Key
"Name" 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
name]
([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
"Description" (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)
description,
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
"State" (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)
state,
Key -> [Tag] -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"Tags" ([Tag] -> (Key, Value)) -> Maybe [Tag] -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe [Tag]
tags]))}
instance JSON.ToJSON ContactFlowModule where
toJSON :: ContactFlowModule -> Value
toJSON ContactFlowModule {Maybe [Tag]
Maybe (Value Text)
()
Value Text
haddock_workaround_ :: ContactFlowModule -> ()
content :: ContactFlowModule -> Value Text
description :: ContactFlowModule -> Maybe (Value Text)
instanceArn :: ContactFlowModule -> Value Text
name :: ContactFlowModule -> Value Text
state :: ContactFlowModule -> Maybe (Value Text)
tags :: ContactFlowModule -> Maybe [Tag]
haddock_workaround_ :: ()
content :: Value Text
description :: Maybe (Value Text)
instanceArn :: Value Text
name :: Value Text
state :: Maybe (Value Text)
tags :: Maybe [Tag]
..}
= [(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
"Content" 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
content, Key
"InstanceArn" 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
instanceArn,
Key
"Name" 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
name]
([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
"Description" (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)
description,
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
"State" (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)
state,
Key -> [Tag] -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"Tags" ([Tag] -> (Key, Value)) -> Maybe [Tag] -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe [Tag]
tags])))
instance Property "Content" ContactFlowModule where
type PropertyType "Content" ContactFlowModule = Value Prelude.Text
set :: PropertyType "Content" ContactFlowModule
-> ContactFlowModule -> ContactFlowModule
set PropertyType "Content" ContactFlowModule
newValue ContactFlowModule {Maybe [Tag]
Maybe (Value Text)
()
Value Text
haddock_workaround_ :: ContactFlowModule -> ()
content :: ContactFlowModule -> Value Text
description :: ContactFlowModule -> Maybe (Value Text)
instanceArn :: ContactFlowModule -> Value Text
name :: ContactFlowModule -> Value Text
state :: ContactFlowModule -> Maybe (Value Text)
tags :: ContactFlowModule -> Maybe [Tag]
haddock_workaround_ :: ()
content :: Value Text
description :: Maybe (Value Text)
instanceArn :: Value Text
name :: Value Text
state :: Maybe (Value Text)
tags :: Maybe [Tag]
..}
= ContactFlowModule {content :: Value Text
content = PropertyType "Content" ContactFlowModule
Value Text
newValue, Maybe [Tag]
Maybe (Value Text)
()
Value Text
haddock_workaround_ :: ()
description :: Maybe (Value Text)
instanceArn :: Value Text
name :: Value Text
state :: Maybe (Value Text)
tags :: Maybe [Tag]
haddock_workaround_ :: ()
description :: Maybe (Value Text)
instanceArn :: Value Text
name :: Value Text
state :: Maybe (Value Text)
tags :: Maybe [Tag]
..}
instance Property "Description" ContactFlowModule where
type PropertyType "Description" ContactFlowModule = Value Prelude.Text
set :: PropertyType "Description" ContactFlowModule
-> ContactFlowModule -> ContactFlowModule
set PropertyType "Description" ContactFlowModule
newValue ContactFlowModule {Maybe [Tag]
Maybe (Value Text)
()
Value Text
haddock_workaround_ :: ContactFlowModule -> ()
content :: ContactFlowModule -> Value Text
description :: ContactFlowModule -> Maybe (Value Text)
instanceArn :: ContactFlowModule -> Value Text
name :: ContactFlowModule -> Value Text
state :: ContactFlowModule -> Maybe (Value Text)
tags :: ContactFlowModule -> Maybe [Tag]
haddock_workaround_ :: ()
content :: Value Text
description :: Maybe (Value Text)
instanceArn :: Value Text
name :: Value Text
state :: Maybe (Value Text)
tags :: Maybe [Tag]
..}
= ContactFlowModule {description :: Maybe (Value Text)
description = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "Description" ContactFlowModule
Value Text
newValue, Maybe [Tag]
Maybe (Value Text)
()
Value Text
haddock_workaround_ :: ()
content :: Value Text
instanceArn :: Value Text
name :: Value Text
state :: Maybe (Value Text)
tags :: Maybe [Tag]
haddock_workaround_ :: ()
content :: Value Text
instanceArn :: Value Text
name :: Value Text
state :: Maybe (Value Text)
tags :: Maybe [Tag]
..}
instance Property "InstanceArn" ContactFlowModule where
type PropertyType "InstanceArn" ContactFlowModule = Value Prelude.Text
set :: PropertyType "InstanceArn" ContactFlowModule
-> ContactFlowModule -> ContactFlowModule
set PropertyType "InstanceArn" ContactFlowModule
newValue ContactFlowModule {Maybe [Tag]
Maybe (Value Text)
()
Value Text
haddock_workaround_ :: ContactFlowModule -> ()
content :: ContactFlowModule -> Value Text
description :: ContactFlowModule -> Maybe (Value Text)
instanceArn :: ContactFlowModule -> Value Text
name :: ContactFlowModule -> Value Text
state :: ContactFlowModule -> Maybe (Value Text)
tags :: ContactFlowModule -> Maybe [Tag]
haddock_workaround_ :: ()
content :: Value Text
description :: Maybe (Value Text)
instanceArn :: Value Text
name :: Value Text
state :: Maybe (Value Text)
tags :: Maybe [Tag]
..}
= ContactFlowModule {instanceArn :: Value Text
instanceArn = PropertyType "InstanceArn" ContactFlowModule
Value Text
newValue, Maybe [Tag]
Maybe (Value Text)
()
Value Text
haddock_workaround_ :: ()
content :: Value Text
description :: Maybe (Value Text)
name :: Value Text
state :: Maybe (Value Text)
tags :: Maybe [Tag]
haddock_workaround_ :: ()
content :: Value Text
description :: Maybe (Value Text)
name :: Value Text
state :: Maybe (Value Text)
tags :: Maybe [Tag]
..}
instance Property "Name" ContactFlowModule where
type PropertyType "Name" ContactFlowModule = Value Prelude.Text
set :: PropertyType "Name" ContactFlowModule
-> ContactFlowModule -> ContactFlowModule
set PropertyType "Name" ContactFlowModule
newValue ContactFlowModule {Maybe [Tag]
Maybe (Value Text)
()
Value Text
haddock_workaround_ :: ContactFlowModule -> ()
content :: ContactFlowModule -> Value Text
description :: ContactFlowModule -> Maybe (Value Text)
instanceArn :: ContactFlowModule -> Value Text
name :: ContactFlowModule -> Value Text
state :: ContactFlowModule -> Maybe (Value Text)
tags :: ContactFlowModule -> Maybe [Tag]
haddock_workaround_ :: ()
content :: Value Text
description :: Maybe (Value Text)
instanceArn :: Value Text
name :: Value Text
state :: Maybe (Value Text)
tags :: Maybe [Tag]
..}
= ContactFlowModule {name :: Value Text
name = PropertyType "Name" ContactFlowModule
Value Text
newValue, Maybe [Tag]
Maybe (Value Text)
()
Value Text
haddock_workaround_ :: ()
content :: Value Text
description :: Maybe (Value Text)
instanceArn :: Value Text
state :: Maybe (Value Text)
tags :: Maybe [Tag]
haddock_workaround_ :: ()
content :: Value Text
description :: Maybe (Value Text)
instanceArn :: Value Text
state :: Maybe (Value Text)
tags :: Maybe [Tag]
..}
instance Property "State" ContactFlowModule where
type PropertyType "State" ContactFlowModule = Value Prelude.Text
set :: PropertyType "State" ContactFlowModule
-> ContactFlowModule -> ContactFlowModule
set PropertyType "State" ContactFlowModule
newValue ContactFlowModule {Maybe [Tag]
Maybe (Value Text)
()
Value Text
haddock_workaround_ :: ContactFlowModule -> ()
content :: ContactFlowModule -> Value Text
description :: ContactFlowModule -> Maybe (Value Text)
instanceArn :: ContactFlowModule -> Value Text
name :: ContactFlowModule -> Value Text
state :: ContactFlowModule -> Maybe (Value Text)
tags :: ContactFlowModule -> Maybe [Tag]
haddock_workaround_ :: ()
content :: Value Text
description :: Maybe (Value Text)
instanceArn :: Value Text
name :: Value Text
state :: Maybe (Value Text)
tags :: Maybe [Tag]
..}
= ContactFlowModule {state :: Maybe (Value Text)
state = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "State" ContactFlowModule
Value Text
newValue, Maybe [Tag]
Maybe (Value Text)
()
Value Text
haddock_workaround_ :: ()
content :: Value Text
description :: Maybe (Value Text)
instanceArn :: Value Text
name :: Value Text
tags :: Maybe [Tag]
haddock_workaround_ :: ()
content :: Value Text
description :: Maybe (Value Text)
instanceArn :: Value Text
name :: Value Text
tags :: Maybe [Tag]
..}
instance Property "Tags" ContactFlowModule where
type PropertyType "Tags" ContactFlowModule = [Tag]
set :: PropertyType "Tags" ContactFlowModule
-> ContactFlowModule -> ContactFlowModule
set PropertyType "Tags" ContactFlowModule
newValue ContactFlowModule {Maybe [Tag]
Maybe (Value Text)
()
Value Text
haddock_workaround_ :: ContactFlowModule -> ()
content :: ContactFlowModule -> Value Text
description :: ContactFlowModule -> Maybe (Value Text)
instanceArn :: ContactFlowModule -> Value Text
name :: ContactFlowModule -> Value Text
state :: ContactFlowModule -> Maybe (Value Text)
tags :: ContactFlowModule -> Maybe [Tag]
haddock_workaround_ :: ()
content :: Value Text
description :: Maybe (Value Text)
instanceArn :: Value Text
name :: Value Text
state :: Maybe (Value Text)
tags :: Maybe [Tag]
..}
= ContactFlowModule {tags :: Maybe [Tag]
tags = [Tag] -> Maybe [Tag]
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure [Tag]
PropertyType "Tags" ContactFlowModule
newValue, Maybe (Value Text)
()
Value Text
haddock_workaround_ :: ()
content :: Value Text
description :: Maybe (Value Text)
instanceArn :: Value Text
name :: Value Text
state :: Maybe (Value Text)
haddock_workaround_ :: ()
content :: Value Text
description :: Maybe (Value Text)
instanceArn :: Value Text
name :: Value Text
state :: Maybe (Value Text)
..}