module Stratosphere.ConnectCampaignsV2.Campaign.TelephonyOutboundConfigProperty (
module Exports, TelephonyOutboundConfigProperty(..),
mkTelephonyOutboundConfigProperty
) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import {-# SOURCE #-} Stratosphere.ConnectCampaignsV2.Campaign.AnswerMachineDetectionConfigProperty as Exports
import Stratosphere.ResourceProperties
import Stratosphere.Value
data TelephonyOutboundConfigProperty
=
TelephonyOutboundConfigProperty {TelephonyOutboundConfigProperty -> ()
haddock_workaround_ :: (),
TelephonyOutboundConfigProperty
-> Maybe AnswerMachineDetectionConfigProperty
answerMachineDetectionConfig :: (Prelude.Maybe AnswerMachineDetectionConfigProperty),
TelephonyOutboundConfigProperty -> Value Text
connectContactFlowId :: (Value Prelude.Text),
TelephonyOutboundConfigProperty -> Maybe (Value Text)
connectSourcePhoneNumber :: (Prelude.Maybe (Value Prelude.Text))}
deriving stock (TelephonyOutboundConfigProperty
-> TelephonyOutboundConfigProperty -> Bool
(TelephonyOutboundConfigProperty
-> TelephonyOutboundConfigProperty -> Bool)
-> (TelephonyOutboundConfigProperty
-> TelephonyOutboundConfigProperty -> Bool)
-> Eq TelephonyOutboundConfigProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: TelephonyOutboundConfigProperty
-> TelephonyOutboundConfigProperty -> Bool
== :: TelephonyOutboundConfigProperty
-> TelephonyOutboundConfigProperty -> Bool
$c/= :: TelephonyOutboundConfigProperty
-> TelephonyOutboundConfigProperty -> Bool
/= :: TelephonyOutboundConfigProperty
-> TelephonyOutboundConfigProperty -> Bool
Prelude.Eq, Int -> TelephonyOutboundConfigProperty -> ShowS
[TelephonyOutboundConfigProperty] -> ShowS
TelephonyOutboundConfigProperty -> String
(Int -> TelephonyOutboundConfigProperty -> ShowS)
-> (TelephonyOutboundConfigProperty -> String)
-> ([TelephonyOutboundConfigProperty] -> ShowS)
-> Show TelephonyOutboundConfigProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> TelephonyOutboundConfigProperty -> ShowS
showsPrec :: Int -> TelephonyOutboundConfigProperty -> ShowS
$cshow :: TelephonyOutboundConfigProperty -> String
show :: TelephonyOutboundConfigProperty -> String
$cshowList :: [TelephonyOutboundConfigProperty] -> ShowS
showList :: [TelephonyOutboundConfigProperty] -> ShowS
Prelude.Show)
mkTelephonyOutboundConfigProperty ::
Value Prelude.Text -> TelephonyOutboundConfigProperty
mkTelephonyOutboundConfigProperty :: Value Text -> TelephonyOutboundConfigProperty
mkTelephonyOutboundConfigProperty Value Text
connectContactFlowId
= TelephonyOutboundConfigProperty
{haddock_workaround_ :: ()
haddock_workaround_ = (),
connectContactFlowId :: Value Text
connectContactFlowId = Value Text
connectContactFlowId,
answerMachineDetectionConfig :: Maybe AnswerMachineDetectionConfigProperty
answerMachineDetectionConfig = Maybe AnswerMachineDetectionConfigProperty
forall a. Maybe a
Prelude.Nothing,
connectSourcePhoneNumber :: Maybe (Value Text)
connectSourcePhoneNumber = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties TelephonyOutboundConfigProperty where
toResourceProperties :: TelephonyOutboundConfigProperty -> ResourceProperties
toResourceProperties TelephonyOutboundConfigProperty {Maybe (Value Text)
Maybe AnswerMachineDetectionConfigProperty
()
Value Text
haddock_workaround_ :: TelephonyOutboundConfigProperty -> ()
answerMachineDetectionConfig :: TelephonyOutboundConfigProperty
-> Maybe AnswerMachineDetectionConfigProperty
connectContactFlowId :: TelephonyOutboundConfigProperty -> Value Text
connectSourcePhoneNumber :: TelephonyOutboundConfigProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
answerMachineDetectionConfig :: Maybe AnswerMachineDetectionConfigProperty
connectContactFlowId :: Value Text
connectSourcePhoneNumber :: Maybe (Value Text)
..}
= ResourceProperties
{awsType :: Text
awsType = Text
"AWS::ConnectCampaignsV2::Campaign.TelephonyOutboundConfig",
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
"ConnectContactFlowId" 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
connectContactFlowId]
([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
"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 TelephonyOutboundConfigProperty where
toJSON :: TelephonyOutboundConfigProperty -> Value
toJSON TelephonyOutboundConfigProperty {Maybe (Value Text)
Maybe AnswerMachineDetectionConfigProperty
()
Value Text
haddock_workaround_ :: TelephonyOutboundConfigProperty -> ()
answerMachineDetectionConfig :: TelephonyOutboundConfigProperty
-> Maybe AnswerMachineDetectionConfigProperty
connectContactFlowId :: TelephonyOutboundConfigProperty -> Value Text
connectSourcePhoneNumber :: TelephonyOutboundConfigProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
answerMachineDetectionConfig :: Maybe AnswerMachineDetectionConfigProperty
connectContactFlowId :: 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
"ConnectContactFlowId" 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
connectContactFlowId]
([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
"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" TelephonyOutboundConfigProperty where
type PropertyType "AnswerMachineDetectionConfig" TelephonyOutboundConfigProperty = AnswerMachineDetectionConfigProperty
set :: PropertyType
"AnswerMachineDetectionConfig" TelephonyOutboundConfigProperty
-> TelephonyOutboundConfigProperty
-> TelephonyOutboundConfigProperty
set PropertyType
"AnswerMachineDetectionConfig" TelephonyOutboundConfigProperty
newValue TelephonyOutboundConfigProperty {Maybe (Value Text)
Maybe AnswerMachineDetectionConfigProperty
()
Value Text
haddock_workaround_ :: TelephonyOutboundConfigProperty -> ()
answerMachineDetectionConfig :: TelephonyOutboundConfigProperty
-> Maybe AnswerMachineDetectionConfigProperty
connectContactFlowId :: TelephonyOutboundConfigProperty -> Value Text
connectSourcePhoneNumber :: TelephonyOutboundConfigProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
answerMachineDetectionConfig :: Maybe AnswerMachineDetectionConfigProperty
connectContactFlowId :: Value Text
connectSourcePhoneNumber :: Maybe (Value Text)
..}
= TelephonyOutboundConfigProperty
{answerMachineDetectionConfig :: Maybe AnswerMachineDetectionConfigProperty
answerMachineDetectionConfig = AnswerMachineDetectionConfigProperty
-> Maybe AnswerMachineDetectionConfigProperty
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType
"AnswerMachineDetectionConfig" TelephonyOutboundConfigProperty
AnswerMachineDetectionConfigProperty
newValue, Maybe (Value Text)
()
Value Text
haddock_workaround_ :: ()
connectContactFlowId :: Value Text
connectSourcePhoneNumber :: Maybe (Value Text)
haddock_workaround_ :: ()
connectContactFlowId :: Value Text
connectSourcePhoneNumber :: Maybe (Value Text)
..}
instance Property "ConnectContactFlowId" TelephonyOutboundConfigProperty where
type PropertyType "ConnectContactFlowId" TelephonyOutboundConfigProperty = Value Prelude.Text
set :: PropertyType "ConnectContactFlowId" TelephonyOutboundConfigProperty
-> TelephonyOutboundConfigProperty
-> TelephonyOutboundConfigProperty
set PropertyType "ConnectContactFlowId" TelephonyOutboundConfigProperty
newValue TelephonyOutboundConfigProperty {Maybe (Value Text)
Maybe AnswerMachineDetectionConfigProperty
()
Value Text
haddock_workaround_ :: TelephonyOutboundConfigProperty -> ()
answerMachineDetectionConfig :: TelephonyOutboundConfigProperty
-> Maybe AnswerMachineDetectionConfigProperty
connectContactFlowId :: TelephonyOutboundConfigProperty -> Value Text
connectSourcePhoneNumber :: TelephonyOutboundConfigProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
answerMachineDetectionConfig :: Maybe AnswerMachineDetectionConfigProperty
connectContactFlowId :: Value Text
connectSourcePhoneNumber :: Maybe (Value Text)
..}
= TelephonyOutboundConfigProperty
{connectContactFlowId :: Value Text
connectContactFlowId = PropertyType "ConnectContactFlowId" TelephonyOutboundConfigProperty
Value Text
newValue, Maybe (Value Text)
Maybe AnswerMachineDetectionConfigProperty
()
haddock_workaround_ :: ()
answerMachineDetectionConfig :: Maybe AnswerMachineDetectionConfigProperty
connectSourcePhoneNumber :: Maybe (Value Text)
haddock_workaround_ :: ()
answerMachineDetectionConfig :: Maybe AnswerMachineDetectionConfigProperty
connectSourcePhoneNumber :: Maybe (Value Text)
..}
instance Property "ConnectSourcePhoneNumber" TelephonyOutboundConfigProperty where
type PropertyType "ConnectSourcePhoneNumber" TelephonyOutboundConfigProperty = Value Prelude.Text
set :: PropertyType
"ConnectSourcePhoneNumber" TelephonyOutboundConfigProperty
-> TelephonyOutboundConfigProperty
-> TelephonyOutboundConfigProperty
set PropertyType
"ConnectSourcePhoneNumber" TelephonyOutboundConfigProperty
newValue TelephonyOutboundConfigProperty {Maybe (Value Text)
Maybe AnswerMachineDetectionConfigProperty
()
Value Text
haddock_workaround_ :: TelephonyOutboundConfigProperty -> ()
answerMachineDetectionConfig :: TelephonyOutboundConfigProperty
-> Maybe AnswerMachineDetectionConfigProperty
connectContactFlowId :: TelephonyOutboundConfigProperty -> Value Text
connectSourcePhoneNumber :: TelephonyOutboundConfigProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
answerMachineDetectionConfig :: Maybe AnswerMachineDetectionConfigProperty
connectContactFlowId :: Value Text
connectSourcePhoneNumber :: Maybe (Value Text)
..}
= TelephonyOutboundConfigProperty
{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" TelephonyOutboundConfigProperty
Value Text
newValue, Maybe AnswerMachineDetectionConfigProperty
()
Value Text
haddock_workaround_ :: ()
answerMachineDetectionConfig :: Maybe AnswerMachineDetectionConfigProperty
connectContactFlowId :: Value Text
haddock_workaround_ :: ()
answerMachineDetectionConfig :: Maybe AnswerMachineDetectionConfigProperty
connectContactFlowId :: Value Text
..}