module Stratosphere.Connect.RoutingProfile.CrossChannelBehaviorProperty (
CrossChannelBehaviorProperty(..), mkCrossChannelBehaviorProperty
) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data CrossChannelBehaviorProperty
=
CrossChannelBehaviorProperty {CrossChannelBehaviorProperty -> ()
haddock_workaround_ :: (),
CrossChannelBehaviorProperty -> Value Text
behaviorType :: (Value Prelude.Text)}
deriving stock (CrossChannelBehaviorProperty
-> CrossChannelBehaviorProperty -> Bool
(CrossChannelBehaviorProperty
-> CrossChannelBehaviorProperty -> Bool)
-> (CrossChannelBehaviorProperty
-> CrossChannelBehaviorProperty -> Bool)
-> Eq CrossChannelBehaviorProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: CrossChannelBehaviorProperty
-> CrossChannelBehaviorProperty -> Bool
== :: CrossChannelBehaviorProperty
-> CrossChannelBehaviorProperty -> Bool
$c/= :: CrossChannelBehaviorProperty
-> CrossChannelBehaviorProperty -> Bool
/= :: CrossChannelBehaviorProperty
-> CrossChannelBehaviorProperty -> Bool
Prelude.Eq, Int -> CrossChannelBehaviorProperty -> ShowS
[CrossChannelBehaviorProperty] -> ShowS
CrossChannelBehaviorProperty -> String
(Int -> CrossChannelBehaviorProperty -> ShowS)
-> (CrossChannelBehaviorProperty -> String)
-> ([CrossChannelBehaviorProperty] -> ShowS)
-> Show CrossChannelBehaviorProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> CrossChannelBehaviorProperty -> ShowS
showsPrec :: Int -> CrossChannelBehaviorProperty -> ShowS
$cshow :: CrossChannelBehaviorProperty -> String
show :: CrossChannelBehaviorProperty -> String
$cshowList :: [CrossChannelBehaviorProperty] -> ShowS
showList :: [CrossChannelBehaviorProperty] -> ShowS
Prelude.Show)
mkCrossChannelBehaviorProperty ::
Value Prelude.Text -> CrossChannelBehaviorProperty
mkCrossChannelBehaviorProperty :: Value Text -> CrossChannelBehaviorProperty
mkCrossChannelBehaviorProperty Value Text
behaviorType
= CrossChannelBehaviorProperty
{haddock_workaround_ :: ()
haddock_workaround_ = (), behaviorType :: Value Text
behaviorType = Value Text
behaviorType}
instance ToResourceProperties CrossChannelBehaviorProperty where
toResourceProperties :: CrossChannelBehaviorProperty -> ResourceProperties
toResourceProperties CrossChannelBehaviorProperty {()
Value Text
haddock_workaround_ :: CrossChannelBehaviorProperty -> ()
behaviorType :: CrossChannelBehaviorProperty -> Value Text
haddock_workaround_ :: ()
behaviorType :: Value Text
..}
= ResourceProperties
{awsType :: Text
awsType = Text
"AWS::Connect::RoutingProfile.CrossChannelBehavior",
supportsTags :: Bool
supportsTags = Bool
Prelude.False,
properties :: Object
properties = [Key
"BehaviorType" 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
behaviorType]}
instance JSON.ToJSON CrossChannelBehaviorProperty where
toJSON :: CrossChannelBehaviorProperty -> Value
toJSON CrossChannelBehaviorProperty {()
Value Text
haddock_workaround_ :: CrossChannelBehaviorProperty -> ()
behaviorType :: CrossChannelBehaviorProperty -> Value Text
haddock_workaround_ :: ()
behaviorType :: Value Text
..}
= [(Key, Value)] -> Value
JSON.object [Key
"BehaviorType" 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
behaviorType]
instance Property "BehaviorType" CrossChannelBehaviorProperty where
type PropertyType "BehaviorType" CrossChannelBehaviorProperty = Value Prelude.Text
set :: PropertyType "BehaviorType" CrossChannelBehaviorProperty
-> CrossChannelBehaviorProperty -> CrossChannelBehaviorProperty
set PropertyType "BehaviorType" CrossChannelBehaviorProperty
newValue CrossChannelBehaviorProperty {()
Value Text
haddock_workaround_ :: CrossChannelBehaviorProperty -> ()
behaviorType :: CrossChannelBehaviorProperty -> Value Text
haddock_workaround_ :: ()
behaviorType :: Value Text
..}
= CrossChannelBehaviorProperty {behaviorType :: Value Text
behaviorType = PropertyType "BehaviorType" CrossChannelBehaviorProperty
Value Text
newValue, ()
haddock_workaround_ :: ()
haddock_workaround_ :: ()
..}