module Stratosphere.ConnectCampaigns.Campaign.OutboundCallConfigProperty (
module Exports, OutboundCallConfigProperty(..),
mkOutboundCallConfigProperty
) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import {-# SOURCE #-} Stratosphere.ConnectCampaigns.Campaign.AnswerMachineDetectionConfigProperty as Exports
import Stratosphere.ResourceProperties
import Stratosphere.Value
data OutboundCallConfigProperty
=
OutboundCallConfigProperty {OutboundCallConfigProperty -> ()
haddock_workaround_ :: (),
OutboundCallConfigProperty
-> Maybe AnswerMachineDetectionConfigProperty
answerMachineDetectionConfig :: (Prelude.Maybe AnswerMachineDetectionConfigProperty),
OutboundCallConfigProperty -> Value Text
connectContactFlowArn :: (Value Prelude.Text),
OutboundCallConfigProperty -> Maybe (Value Text)
connectQueueArn :: (Prelude.Maybe (Value Prelude.Text)),
OutboundCallConfigProperty -> Maybe (Value Text)
connectSourcePhoneNumber :: (Prelude.Maybe (Value Prelude.Text))}
deriving stock (OutboundCallConfigProperty -> OutboundCallConfigProperty -> Bool
(OutboundCallConfigProperty -> OutboundCallConfigProperty -> Bool)
-> (OutboundCallConfigProperty
-> OutboundCallConfigProperty -> Bool)
-> Eq OutboundCallConfigProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: OutboundCallConfigProperty -> OutboundCallConfigProperty -> Bool
== :: OutboundCallConfigProperty -> OutboundCallConfigProperty -> Bool
$c/= :: OutboundCallConfigProperty -> OutboundCallConfigProperty -> Bool
/= :: OutboundCallConfigProperty -> OutboundCallConfigProperty -> Bool
Prelude.Eq, Int -> OutboundCallConfigProperty -> ShowS
[OutboundCallConfigProperty] -> ShowS
OutboundCallConfigProperty -> String
(Int -> OutboundCallConfigProperty -> ShowS)
-> (OutboundCallConfigProperty -> String)
-> ([OutboundCallConfigProperty] -> ShowS)
-> Show OutboundCallConfigProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> OutboundCallConfigProperty -> ShowS
showsPrec :: Int -> OutboundCallConfigProperty -> ShowS
$cshow :: OutboundCallConfigProperty -> String
show :: OutboundCallConfigProperty -> String
$cshowList :: [OutboundCallConfigProperty] -> ShowS
showList :: [OutboundCallConfigProperty] -> ShowS
Prelude.Show)
mkOutboundCallConfigProperty ::
Value Prelude.Text -> OutboundCallConfigProperty
mkOutboundCallConfigProperty :: Value Text -> OutboundCallConfigProperty
mkOutboundCallConfigProperty Value Text
connectContactFlowArn
= OutboundCallConfigProperty
{haddock_workaround_ :: ()
haddock_workaround_ = (),
connectContactFlowArn :: Value Text
connectContactFlowArn = Value Text
connectContactFlowArn,
answerMachineDetectionConfig :: Maybe AnswerMachineDetectionConfigProperty
answerMachineDetectionConfig = Maybe AnswerMachineDetectionConfigProperty
forall a. Maybe a
Prelude.Nothing,
connectQueueArn :: Maybe (Value Text)
connectQueueArn = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing,
connectSourcePhoneNumber :: Maybe (Value Text)
connectSourcePhoneNumber = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties OutboundCallConfigProperty where
toResourceProperties :: OutboundCallConfigProperty -> ResourceProperties
toResourceProperties OutboundCallConfigProperty {Maybe (Value Text)
Maybe AnswerMachineDetectionConfigProperty
()
Value Text
haddock_workaround_ :: OutboundCallConfigProperty -> ()
answerMachineDetectionConfig :: OutboundCallConfigProperty
-> Maybe AnswerMachineDetectionConfigProperty
connectContactFlowArn :: OutboundCallConfigProperty -> Value Text
connectQueueArn :: OutboundCallConfigProperty -> Maybe (Value Text)
connectSourcePhoneNumber :: OutboundCallConfigProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
answerMachineDetectionConfig :: Maybe AnswerMachineDetectionConfigProperty
connectContactFlowArn :: Value Text
connectQueueArn :: Maybe (Value Text)
connectSourcePhoneNumber :: Maybe (Value Text)
..}
= ResourceProperties
{awsType :: Text
awsType = Text
"AWS::ConnectCampaigns::Campaign.OutboundCallConfig",
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
"ConnectContactFlowArn" 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
connectContactFlowArn]
([Maybe (Key, Value)] -> [(Key, Value)]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
[Key -> AnswerMachineDetectionConfigProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"AnswerMachineDetectionConfig"
(AnswerMachineDetectionConfigProperty -> (Key, Value))
-> Maybe AnswerMachineDetectionConfigProperty -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe AnswerMachineDetectionConfigProperty
answerMachineDetectionConfig,
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
"ConnectQueueArn" (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)
connectQueueArn,
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
"ConnectSourcePhoneNumber"
(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)
connectSourcePhoneNumber]))}
instance JSON.ToJSON OutboundCallConfigProperty where
toJSON :: OutboundCallConfigProperty -> Value
toJSON OutboundCallConfigProperty {Maybe (Value Text)
Maybe AnswerMachineDetectionConfigProperty
()
Value Text
haddock_workaround_ :: OutboundCallConfigProperty -> ()
answerMachineDetectionConfig :: OutboundCallConfigProperty
-> Maybe AnswerMachineDetectionConfigProperty
connectContactFlowArn :: OutboundCallConfigProperty -> Value Text
connectQueueArn :: OutboundCallConfigProperty -> Maybe (Value Text)
connectSourcePhoneNumber :: OutboundCallConfigProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
answerMachineDetectionConfig :: Maybe AnswerMachineDetectionConfigProperty
connectContactFlowArn :: Value Text
connectQueueArn :: Maybe (Value Text)
connectSourcePhoneNumber :: Maybe (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
"ConnectContactFlowArn" 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
connectContactFlowArn]
([Maybe (Key, Value)] -> [(Key, Value)]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
[Key -> AnswerMachineDetectionConfigProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"AnswerMachineDetectionConfig"
(AnswerMachineDetectionConfigProperty -> (Key, Value))
-> Maybe AnswerMachineDetectionConfigProperty -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe AnswerMachineDetectionConfigProperty
answerMachineDetectionConfig,
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
"ConnectQueueArn" (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)
connectQueueArn,
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
"ConnectSourcePhoneNumber"
(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)
connectSourcePhoneNumber])))
instance Property "AnswerMachineDetectionConfig" OutboundCallConfigProperty where
type PropertyType "AnswerMachineDetectionConfig" OutboundCallConfigProperty = AnswerMachineDetectionConfigProperty
set :: PropertyType
"AnswerMachineDetectionConfig" OutboundCallConfigProperty
-> OutboundCallConfigProperty -> OutboundCallConfigProperty
set PropertyType
"AnswerMachineDetectionConfig" OutboundCallConfigProperty
newValue OutboundCallConfigProperty {Maybe (Value Text)
Maybe AnswerMachineDetectionConfigProperty
()
Value Text
haddock_workaround_ :: OutboundCallConfigProperty -> ()
answerMachineDetectionConfig :: OutboundCallConfigProperty
-> Maybe AnswerMachineDetectionConfigProperty
connectContactFlowArn :: OutboundCallConfigProperty -> Value Text
connectQueueArn :: OutboundCallConfigProperty -> Maybe (Value Text)
connectSourcePhoneNumber :: OutboundCallConfigProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
answerMachineDetectionConfig :: Maybe AnswerMachineDetectionConfigProperty
connectContactFlowArn :: Value Text
connectQueueArn :: Maybe (Value Text)
connectSourcePhoneNumber :: Maybe (Value Text)
..}
= OutboundCallConfigProperty
{answerMachineDetectionConfig :: Maybe AnswerMachineDetectionConfigProperty
answerMachineDetectionConfig = AnswerMachineDetectionConfigProperty
-> Maybe AnswerMachineDetectionConfigProperty
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType
"AnswerMachineDetectionConfig" OutboundCallConfigProperty
AnswerMachineDetectionConfigProperty
newValue, Maybe (Value Text)
()
Value Text
haddock_workaround_ :: ()
connectContactFlowArn :: Value Text
connectQueueArn :: Maybe (Value Text)
connectSourcePhoneNumber :: Maybe (Value Text)
haddock_workaround_ :: ()
connectContactFlowArn :: Value Text
connectQueueArn :: Maybe (Value Text)
connectSourcePhoneNumber :: Maybe (Value Text)
..}
instance Property "ConnectContactFlowArn" OutboundCallConfigProperty where
type PropertyType "ConnectContactFlowArn" OutboundCallConfigProperty = Value Prelude.Text
set :: PropertyType "ConnectContactFlowArn" OutboundCallConfigProperty
-> OutboundCallConfigProperty -> OutboundCallConfigProperty
set PropertyType "ConnectContactFlowArn" OutboundCallConfigProperty
newValue OutboundCallConfigProperty {Maybe (Value Text)
Maybe AnswerMachineDetectionConfigProperty
()
Value Text
haddock_workaround_ :: OutboundCallConfigProperty -> ()
answerMachineDetectionConfig :: OutboundCallConfigProperty
-> Maybe AnswerMachineDetectionConfigProperty
connectContactFlowArn :: OutboundCallConfigProperty -> Value Text
connectQueueArn :: OutboundCallConfigProperty -> Maybe (Value Text)
connectSourcePhoneNumber :: OutboundCallConfigProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
answerMachineDetectionConfig :: Maybe AnswerMachineDetectionConfigProperty
connectContactFlowArn :: Value Text
connectQueueArn :: Maybe (Value Text)
connectSourcePhoneNumber :: Maybe (Value Text)
..}
= OutboundCallConfigProperty {connectContactFlowArn :: Value Text
connectContactFlowArn = PropertyType "ConnectContactFlowArn" OutboundCallConfigProperty
Value Text
newValue, Maybe (Value Text)
Maybe AnswerMachineDetectionConfigProperty
()
haddock_workaround_ :: ()
answerMachineDetectionConfig :: Maybe AnswerMachineDetectionConfigProperty
connectQueueArn :: Maybe (Value Text)
connectSourcePhoneNumber :: Maybe (Value Text)
haddock_workaround_ :: ()
answerMachineDetectionConfig :: Maybe AnswerMachineDetectionConfigProperty
connectQueueArn :: Maybe (Value Text)
connectSourcePhoneNumber :: Maybe (Value Text)
..}
instance Property "ConnectQueueArn" OutboundCallConfigProperty where
type PropertyType "ConnectQueueArn" OutboundCallConfigProperty = Value Prelude.Text
set :: PropertyType "ConnectQueueArn" OutboundCallConfigProperty
-> OutboundCallConfigProperty -> OutboundCallConfigProperty
set PropertyType "ConnectQueueArn" OutboundCallConfigProperty
newValue OutboundCallConfigProperty {Maybe (Value Text)
Maybe AnswerMachineDetectionConfigProperty
()
Value Text
haddock_workaround_ :: OutboundCallConfigProperty -> ()
answerMachineDetectionConfig :: OutboundCallConfigProperty
-> Maybe AnswerMachineDetectionConfigProperty
connectContactFlowArn :: OutboundCallConfigProperty -> Value Text
connectQueueArn :: OutboundCallConfigProperty -> Maybe (Value Text)
connectSourcePhoneNumber :: OutboundCallConfigProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
answerMachineDetectionConfig :: Maybe AnswerMachineDetectionConfigProperty
connectContactFlowArn :: Value Text
connectQueueArn :: Maybe (Value Text)
connectSourcePhoneNumber :: Maybe (Value Text)
..}
= OutboundCallConfigProperty
{connectQueueArn :: Maybe (Value Text)
connectQueueArn = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "ConnectQueueArn" OutboundCallConfigProperty
Value Text
newValue, Maybe (Value Text)
Maybe AnswerMachineDetectionConfigProperty
()
Value Text
haddock_workaround_ :: ()
answerMachineDetectionConfig :: Maybe AnswerMachineDetectionConfigProperty
connectContactFlowArn :: Value Text
connectSourcePhoneNumber :: Maybe (Value Text)
haddock_workaround_ :: ()
answerMachineDetectionConfig :: Maybe AnswerMachineDetectionConfigProperty
connectContactFlowArn :: Value Text
connectSourcePhoneNumber :: Maybe (Value Text)
..}
instance Property "ConnectSourcePhoneNumber" OutboundCallConfigProperty where
type PropertyType "ConnectSourcePhoneNumber" OutboundCallConfigProperty = Value Prelude.Text
set :: PropertyType "ConnectSourcePhoneNumber" OutboundCallConfigProperty
-> OutboundCallConfigProperty -> OutboundCallConfigProperty
set PropertyType "ConnectSourcePhoneNumber" OutboundCallConfigProperty
newValue OutboundCallConfigProperty {Maybe (Value Text)
Maybe AnswerMachineDetectionConfigProperty
()
Value Text
haddock_workaround_ :: OutboundCallConfigProperty -> ()
answerMachineDetectionConfig :: OutboundCallConfigProperty
-> Maybe AnswerMachineDetectionConfigProperty
connectContactFlowArn :: OutboundCallConfigProperty -> Value Text
connectQueueArn :: OutboundCallConfigProperty -> Maybe (Value Text)
connectSourcePhoneNumber :: OutboundCallConfigProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
answerMachineDetectionConfig :: Maybe AnswerMachineDetectionConfigProperty
connectContactFlowArn :: Value Text
connectQueueArn :: Maybe (Value Text)
connectSourcePhoneNumber :: Maybe (Value Text)
..}
= OutboundCallConfigProperty
{connectSourcePhoneNumber :: Maybe (Value Text)
connectSourcePhoneNumber = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "ConnectSourcePhoneNumber" OutboundCallConfigProperty
Value Text
newValue, Maybe (Value Text)
Maybe AnswerMachineDetectionConfigProperty
()
Value Text
haddock_workaround_ :: ()
answerMachineDetectionConfig :: Maybe AnswerMachineDetectionConfigProperty
connectContactFlowArn :: Value Text
connectQueueArn :: Maybe (Value Text)
haddock_workaround_ :: ()
answerMachineDetectionConfig :: Maybe AnswerMachineDetectionConfigProperty
connectContactFlowArn :: Value Text
connectQueueArn :: Maybe (Value Text)
..}