module Stratosphere.Connect.ContactFlow (
        ContactFlow(..), mkContactFlow
    ) 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 ContactFlow
  = -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-connect-contactflow.html>
    ContactFlow {ContactFlow -> ()
haddock_workaround_ :: (),
                 -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-connect-contactflow.html#cfn-connect-contactflow-content>
                 ContactFlow -> Value Text
content :: (Value Prelude.Text),
                 -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-connect-contactflow.html#cfn-connect-contactflow-description>
                 ContactFlow -> Maybe (Value Text)
description :: (Prelude.Maybe (Value Prelude.Text)),
                 -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-connect-contactflow.html#cfn-connect-contactflow-instancearn>
                 ContactFlow -> Value Text
instanceArn :: (Value Prelude.Text),
                 -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-connect-contactflow.html#cfn-connect-contactflow-name>
                 ContactFlow -> Value Text
name :: (Value Prelude.Text),
                 -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-connect-contactflow.html#cfn-connect-contactflow-state>
                 ContactFlow -> Maybe (Value Text)
state :: (Prelude.Maybe (Value Prelude.Text)),
                 -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-connect-contactflow.html#cfn-connect-contactflow-tags>
                 ContactFlow -> Maybe [Tag]
tags :: (Prelude.Maybe [Tag]),
                 -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-connect-contactflow.html#cfn-connect-contactflow-type>
                 ContactFlow -> Value Text
type' :: (Value Prelude.Text)}
  deriving stock (ContactFlow -> ContactFlow -> Bool
(ContactFlow -> ContactFlow -> Bool)
-> (ContactFlow -> ContactFlow -> Bool) -> Eq ContactFlow
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: ContactFlow -> ContactFlow -> Bool
== :: ContactFlow -> ContactFlow -> Bool
$c/= :: ContactFlow -> ContactFlow -> Bool
/= :: ContactFlow -> ContactFlow -> Bool
Prelude.Eq, Int -> ContactFlow -> ShowS
[ContactFlow] -> ShowS
ContactFlow -> String
(Int -> ContactFlow -> ShowS)
-> (ContactFlow -> String)
-> ([ContactFlow] -> ShowS)
-> Show ContactFlow
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> ContactFlow -> ShowS
showsPrec :: Int -> ContactFlow -> ShowS
$cshow :: ContactFlow -> String
show :: ContactFlow -> String
$cshowList :: [ContactFlow] -> ShowS
showList :: [ContactFlow] -> ShowS
Prelude.Show)
mkContactFlow ::
  Value Prelude.Text
  -> Value Prelude.Text
     -> Value Prelude.Text -> Value Prelude.Text -> ContactFlow
mkContactFlow :: Value Text -> Value Text -> Value Text -> Value Text -> ContactFlow
mkContactFlow Value Text
content Value Text
instanceArn Value Text
name Value Text
type'
  = ContactFlow
      {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, type' :: Value Text
type' = Value Text
type',
       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 ContactFlow where
  toResourceProperties :: ContactFlow -> ResourceProperties
toResourceProperties ContactFlow {Maybe [Tag]
Maybe (Value Text)
()
Value Text
haddock_workaround_ :: ContactFlow -> ()
content :: ContactFlow -> Value Text
description :: ContactFlow -> Maybe (Value Text)
instanceArn :: ContactFlow -> Value Text
name :: ContactFlow -> Value Text
state :: ContactFlow -> Maybe (Value Text)
tags :: ContactFlow -> Maybe [Tag]
type' :: ContactFlow -> Value Text
haddock_workaround_ :: ()
content :: Value Text
description :: Maybe (Value Text)
instanceArn :: Value Text
name :: Value Text
state :: Maybe (Value Text)
tags :: Maybe [Tag]
type' :: Value Text
..}
    = ResourceProperties
        {awsType :: Text
awsType = Text
"AWS::Connect::ContactFlow",
         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, Key
"Type" 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
type']
                           ([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 ContactFlow where
  toJSON :: ContactFlow -> Value
toJSON ContactFlow {Maybe [Tag]
Maybe (Value Text)
()
Value Text
haddock_workaround_ :: ContactFlow -> ()
content :: ContactFlow -> Value Text
description :: ContactFlow -> Maybe (Value Text)
instanceArn :: ContactFlow -> Value Text
name :: ContactFlow -> Value Text
state :: ContactFlow -> Maybe (Value Text)
tags :: ContactFlow -> Maybe [Tag]
type' :: ContactFlow -> Value Text
haddock_workaround_ :: ()
content :: Value Text
description :: Maybe (Value Text)
instanceArn :: Value Text
name :: Value Text
state :: Maybe (Value Text)
tags :: Maybe [Tag]
type' :: 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
"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, Key
"Type" 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
type']
              ([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" ContactFlow where
  type PropertyType "Content" ContactFlow = Value Prelude.Text
  set :: PropertyType "Content" ContactFlow -> ContactFlow -> ContactFlow
set PropertyType "Content" ContactFlow
newValue ContactFlow {Maybe [Tag]
Maybe (Value Text)
()
Value Text
haddock_workaround_ :: ContactFlow -> ()
content :: ContactFlow -> Value Text
description :: ContactFlow -> Maybe (Value Text)
instanceArn :: ContactFlow -> Value Text
name :: ContactFlow -> Value Text
state :: ContactFlow -> Maybe (Value Text)
tags :: ContactFlow -> Maybe [Tag]
type' :: ContactFlow -> Value Text
haddock_workaround_ :: ()
content :: Value Text
description :: Maybe (Value Text)
instanceArn :: Value Text
name :: Value Text
state :: Maybe (Value Text)
tags :: Maybe [Tag]
type' :: Value Text
..}
    = ContactFlow {content :: Value Text
content = PropertyType "Content" ContactFlow
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]
type' :: Value Text
haddock_workaround_ :: ()
description :: Maybe (Value Text)
instanceArn :: Value Text
name :: Value Text
state :: Maybe (Value Text)
tags :: Maybe [Tag]
type' :: Value Text
..}
instance Property "Description" ContactFlow where
  type PropertyType "Description" ContactFlow = Value Prelude.Text
  set :: PropertyType "Description" ContactFlow
-> ContactFlow -> ContactFlow
set PropertyType "Description" ContactFlow
newValue ContactFlow {Maybe [Tag]
Maybe (Value Text)
()
Value Text
haddock_workaround_ :: ContactFlow -> ()
content :: ContactFlow -> Value Text
description :: ContactFlow -> Maybe (Value Text)
instanceArn :: ContactFlow -> Value Text
name :: ContactFlow -> Value Text
state :: ContactFlow -> Maybe (Value Text)
tags :: ContactFlow -> Maybe [Tag]
type' :: ContactFlow -> Value Text
haddock_workaround_ :: ()
content :: Value Text
description :: Maybe (Value Text)
instanceArn :: Value Text
name :: Value Text
state :: Maybe (Value Text)
tags :: Maybe [Tag]
type' :: Value Text
..}
    = ContactFlow {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" ContactFlow
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]
type' :: Value Text
haddock_workaround_ :: ()
content :: Value Text
instanceArn :: Value Text
name :: Value Text
state :: Maybe (Value Text)
tags :: Maybe [Tag]
type' :: Value Text
..}
instance Property "InstanceArn" ContactFlow where
  type PropertyType "InstanceArn" ContactFlow = Value Prelude.Text
  set :: PropertyType "InstanceArn" ContactFlow
-> ContactFlow -> ContactFlow
set PropertyType "InstanceArn" ContactFlow
newValue ContactFlow {Maybe [Tag]
Maybe (Value Text)
()
Value Text
haddock_workaround_ :: ContactFlow -> ()
content :: ContactFlow -> Value Text
description :: ContactFlow -> Maybe (Value Text)
instanceArn :: ContactFlow -> Value Text
name :: ContactFlow -> Value Text
state :: ContactFlow -> Maybe (Value Text)
tags :: ContactFlow -> Maybe [Tag]
type' :: ContactFlow -> Value Text
haddock_workaround_ :: ()
content :: Value Text
description :: Maybe (Value Text)
instanceArn :: Value Text
name :: Value Text
state :: Maybe (Value Text)
tags :: Maybe [Tag]
type' :: Value Text
..}
    = ContactFlow {instanceArn :: Value Text
instanceArn = PropertyType "InstanceArn" ContactFlow
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]
type' :: Value Text
haddock_workaround_ :: ()
content :: Value Text
description :: Maybe (Value Text)
name :: Value Text
state :: Maybe (Value Text)
tags :: Maybe [Tag]
type' :: Value Text
..}
instance Property "Name" ContactFlow where
  type PropertyType "Name" ContactFlow = Value Prelude.Text
  set :: PropertyType "Name" ContactFlow -> ContactFlow -> ContactFlow
set PropertyType "Name" ContactFlow
newValue ContactFlow {Maybe [Tag]
Maybe (Value Text)
()
Value Text
haddock_workaround_ :: ContactFlow -> ()
content :: ContactFlow -> Value Text
description :: ContactFlow -> Maybe (Value Text)
instanceArn :: ContactFlow -> Value Text
name :: ContactFlow -> Value Text
state :: ContactFlow -> Maybe (Value Text)
tags :: ContactFlow -> Maybe [Tag]
type' :: ContactFlow -> Value Text
haddock_workaround_ :: ()
content :: Value Text
description :: Maybe (Value Text)
instanceArn :: Value Text
name :: Value Text
state :: Maybe (Value Text)
tags :: Maybe [Tag]
type' :: Value Text
..} = ContactFlow {name :: Value Text
name = PropertyType "Name" ContactFlow
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]
type' :: Value Text
haddock_workaround_ :: ()
content :: Value Text
description :: Maybe (Value Text)
instanceArn :: Value Text
state :: Maybe (Value Text)
tags :: Maybe [Tag]
type' :: Value Text
..}
instance Property "State" ContactFlow where
  type PropertyType "State" ContactFlow = Value Prelude.Text
  set :: PropertyType "State" ContactFlow -> ContactFlow -> ContactFlow
set PropertyType "State" ContactFlow
newValue ContactFlow {Maybe [Tag]
Maybe (Value Text)
()
Value Text
haddock_workaround_ :: ContactFlow -> ()
content :: ContactFlow -> Value Text
description :: ContactFlow -> Maybe (Value Text)
instanceArn :: ContactFlow -> Value Text
name :: ContactFlow -> Value Text
state :: ContactFlow -> Maybe (Value Text)
tags :: ContactFlow -> Maybe [Tag]
type' :: ContactFlow -> Value Text
haddock_workaround_ :: ()
content :: Value Text
description :: Maybe (Value Text)
instanceArn :: Value Text
name :: Value Text
state :: Maybe (Value Text)
tags :: Maybe [Tag]
type' :: Value Text
..}
    = ContactFlow {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" ContactFlow
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]
type' :: Value Text
haddock_workaround_ :: ()
content :: Value Text
description :: Maybe (Value Text)
instanceArn :: Value Text
name :: Value Text
tags :: Maybe [Tag]
type' :: Value Text
..}
instance Property "Tags" ContactFlow where
  type PropertyType "Tags" ContactFlow = [Tag]
  set :: PropertyType "Tags" ContactFlow -> ContactFlow -> ContactFlow
set PropertyType "Tags" ContactFlow
newValue ContactFlow {Maybe [Tag]
Maybe (Value Text)
()
Value Text
haddock_workaround_ :: ContactFlow -> ()
content :: ContactFlow -> Value Text
description :: ContactFlow -> Maybe (Value Text)
instanceArn :: ContactFlow -> Value Text
name :: ContactFlow -> Value Text
state :: ContactFlow -> Maybe (Value Text)
tags :: ContactFlow -> Maybe [Tag]
type' :: ContactFlow -> Value Text
haddock_workaround_ :: ()
content :: Value Text
description :: Maybe (Value Text)
instanceArn :: Value Text
name :: Value Text
state :: Maybe (Value Text)
tags :: Maybe [Tag]
type' :: Value Text
..}
    = ContactFlow {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" ContactFlow
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)
type' :: Value Text
haddock_workaround_ :: ()
content :: Value Text
description :: Maybe (Value Text)
instanceArn :: Value Text
name :: Value Text
state :: Maybe (Value Text)
type' :: Value Text
..}
instance Property "Type" ContactFlow where
  type PropertyType "Type" ContactFlow = Value Prelude.Text
  set :: PropertyType "Type" ContactFlow -> ContactFlow -> ContactFlow
set PropertyType "Type" ContactFlow
newValue ContactFlow {Maybe [Tag]
Maybe (Value Text)
()
Value Text
haddock_workaround_ :: ContactFlow -> ()
content :: ContactFlow -> Value Text
description :: ContactFlow -> Maybe (Value Text)
instanceArn :: ContactFlow -> Value Text
name :: ContactFlow -> Value Text
state :: ContactFlow -> Maybe (Value Text)
tags :: ContactFlow -> Maybe [Tag]
type' :: ContactFlow -> Value Text
haddock_workaround_ :: ()
content :: Value Text
description :: Maybe (Value Text)
instanceArn :: Value Text
name :: Value Text
state :: Maybe (Value Text)
tags :: Maybe [Tag]
type' :: Value Text
..} = ContactFlow {type' :: Value Text
type' = PropertyType "Type" ContactFlow
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
state :: Maybe (Value Text)
tags :: Maybe [Tag]
haddock_workaround_ :: ()
content :: Value Text
description :: Maybe (Value Text)
instanceArn :: Value Text
name :: Value Text
state :: Maybe (Value Text)
tags :: Maybe [Tag]
..}