module Stratosphere.Connect.QuickConnect.QuickConnectConfigProperty (
        module Exports, QuickConnectConfigProperty(..),
        mkQuickConnectConfigProperty
    ) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import {-# SOURCE #-} Stratosphere.Connect.QuickConnect.PhoneNumberQuickConnectConfigProperty as Exports
import {-# SOURCE #-} Stratosphere.Connect.QuickConnect.QueueQuickConnectConfigProperty as Exports
import {-# SOURCE #-} Stratosphere.Connect.QuickConnect.UserQuickConnectConfigProperty as Exports
import Stratosphere.ResourceProperties
import Stratosphere.Value
data QuickConnectConfigProperty
  = -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-connect-quickconnect-quickconnectconfig.html>
    QuickConnectConfigProperty {QuickConnectConfigProperty -> ()
haddock_workaround_ :: (),
                                -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-connect-quickconnect-quickconnectconfig.html#cfn-connect-quickconnect-quickconnectconfig-phoneconfig>
                                QuickConnectConfigProperty
-> Maybe PhoneNumberQuickConnectConfigProperty
phoneConfig :: (Prelude.Maybe PhoneNumberQuickConnectConfigProperty),
                                -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-connect-quickconnect-quickconnectconfig.html#cfn-connect-quickconnect-quickconnectconfig-queueconfig>
                                QuickConnectConfigProperty -> Maybe QueueQuickConnectConfigProperty
queueConfig :: (Prelude.Maybe QueueQuickConnectConfigProperty),
                                -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-connect-quickconnect-quickconnectconfig.html#cfn-connect-quickconnect-quickconnectconfig-quickconnecttype>
                                QuickConnectConfigProperty -> Value Text
quickConnectType :: (Value Prelude.Text),
                                -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-connect-quickconnect-quickconnectconfig.html#cfn-connect-quickconnect-quickconnectconfig-userconfig>
                                QuickConnectConfigProperty -> Maybe UserQuickConnectConfigProperty
userConfig :: (Prelude.Maybe UserQuickConnectConfigProperty)}
  deriving stock (QuickConnectConfigProperty -> QuickConnectConfigProperty -> Bool
(QuickConnectConfigProperty -> QuickConnectConfigProperty -> Bool)
-> (QuickConnectConfigProperty
    -> QuickConnectConfigProperty -> Bool)
-> Eq QuickConnectConfigProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: QuickConnectConfigProperty -> QuickConnectConfigProperty -> Bool
== :: QuickConnectConfigProperty -> QuickConnectConfigProperty -> Bool
$c/= :: QuickConnectConfigProperty -> QuickConnectConfigProperty -> Bool
/= :: QuickConnectConfigProperty -> QuickConnectConfigProperty -> Bool
Prelude.Eq, Int -> QuickConnectConfigProperty -> ShowS
[QuickConnectConfigProperty] -> ShowS
QuickConnectConfigProperty -> String
(Int -> QuickConnectConfigProperty -> ShowS)
-> (QuickConnectConfigProperty -> String)
-> ([QuickConnectConfigProperty] -> ShowS)
-> Show QuickConnectConfigProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> QuickConnectConfigProperty -> ShowS
showsPrec :: Int -> QuickConnectConfigProperty -> ShowS
$cshow :: QuickConnectConfigProperty -> String
show :: QuickConnectConfigProperty -> String
$cshowList :: [QuickConnectConfigProperty] -> ShowS
showList :: [QuickConnectConfigProperty] -> ShowS
Prelude.Show)
mkQuickConnectConfigProperty ::
  Value Prelude.Text -> QuickConnectConfigProperty
mkQuickConnectConfigProperty :: Value Text -> QuickConnectConfigProperty
mkQuickConnectConfigProperty Value Text
quickConnectType
  = QuickConnectConfigProperty
      {haddock_workaround_ :: ()
haddock_workaround_ = (), quickConnectType :: Value Text
quickConnectType = Value Text
quickConnectType,
       phoneConfig :: Maybe PhoneNumberQuickConnectConfigProperty
phoneConfig = Maybe PhoneNumberQuickConnectConfigProperty
forall a. Maybe a
Prelude.Nothing, queueConfig :: Maybe QueueQuickConnectConfigProperty
queueConfig = Maybe QueueQuickConnectConfigProperty
forall a. Maybe a
Prelude.Nothing,
       userConfig :: Maybe UserQuickConnectConfigProperty
userConfig = Maybe UserQuickConnectConfigProperty
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties QuickConnectConfigProperty where
  toResourceProperties :: QuickConnectConfigProperty -> ResourceProperties
toResourceProperties QuickConnectConfigProperty {Maybe PhoneNumberQuickConnectConfigProperty
Maybe QueueQuickConnectConfigProperty
Maybe UserQuickConnectConfigProperty
()
Value Text
haddock_workaround_ :: QuickConnectConfigProperty -> ()
phoneConfig :: QuickConnectConfigProperty
-> Maybe PhoneNumberQuickConnectConfigProperty
queueConfig :: QuickConnectConfigProperty -> Maybe QueueQuickConnectConfigProperty
quickConnectType :: QuickConnectConfigProperty -> Value Text
userConfig :: QuickConnectConfigProperty -> Maybe UserQuickConnectConfigProperty
haddock_workaround_ :: ()
phoneConfig :: Maybe PhoneNumberQuickConnectConfigProperty
queueConfig :: Maybe QueueQuickConnectConfigProperty
quickConnectType :: Value Text
userConfig :: Maybe UserQuickConnectConfigProperty
..}
    = ResourceProperties
        {awsType :: Text
awsType = Text
"AWS::Connect::QuickConnect.QuickConnectConfig",
         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
"QuickConnectType" 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
quickConnectType]
                           ([Maybe (Key, Value)] -> [(Key, Value)]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
                              [Key -> PhoneNumberQuickConnectConfigProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"PhoneConfig" (PhoneNumberQuickConnectConfigProperty -> (Key, Value))
-> Maybe PhoneNumberQuickConnectConfigProperty
-> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe PhoneNumberQuickConnectConfigProperty
phoneConfig,
                               Key -> QueueQuickConnectConfigProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"QueueConfig" (QueueQuickConnectConfigProperty -> (Key, Value))
-> Maybe QueueQuickConnectConfigProperty -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe QueueQuickConnectConfigProperty
queueConfig,
                               Key -> UserQuickConnectConfigProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"UserConfig" (UserQuickConnectConfigProperty -> (Key, Value))
-> Maybe UserQuickConnectConfigProperty -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe UserQuickConnectConfigProperty
userConfig]))}
instance JSON.ToJSON QuickConnectConfigProperty where
  toJSON :: QuickConnectConfigProperty -> Value
toJSON QuickConnectConfigProperty {Maybe PhoneNumberQuickConnectConfigProperty
Maybe QueueQuickConnectConfigProperty
Maybe UserQuickConnectConfigProperty
()
Value Text
haddock_workaround_ :: QuickConnectConfigProperty -> ()
phoneConfig :: QuickConnectConfigProperty
-> Maybe PhoneNumberQuickConnectConfigProperty
queueConfig :: QuickConnectConfigProperty -> Maybe QueueQuickConnectConfigProperty
quickConnectType :: QuickConnectConfigProperty -> Value Text
userConfig :: QuickConnectConfigProperty -> Maybe UserQuickConnectConfigProperty
haddock_workaround_ :: ()
phoneConfig :: Maybe PhoneNumberQuickConnectConfigProperty
queueConfig :: Maybe QueueQuickConnectConfigProperty
quickConnectType :: Value Text
userConfig :: Maybe UserQuickConnectConfigProperty
..}
    = [(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
"QuickConnectType" 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
quickConnectType]
              ([Maybe (Key, Value)] -> [(Key, Value)]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
                 [Key -> PhoneNumberQuickConnectConfigProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"PhoneConfig" (PhoneNumberQuickConnectConfigProperty -> (Key, Value))
-> Maybe PhoneNumberQuickConnectConfigProperty
-> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe PhoneNumberQuickConnectConfigProperty
phoneConfig,
                  Key -> QueueQuickConnectConfigProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"QueueConfig" (QueueQuickConnectConfigProperty -> (Key, Value))
-> Maybe QueueQuickConnectConfigProperty -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe QueueQuickConnectConfigProperty
queueConfig,
                  Key -> UserQuickConnectConfigProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"UserConfig" (UserQuickConnectConfigProperty -> (Key, Value))
-> Maybe UserQuickConnectConfigProperty -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe UserQuickConnectConfigProperty
userConfig])))
instance Property "PhoneConfig" QuickConnectConfigProperty where
  type PropertyType "PhoneConfig" QuickConnectConfigProperty = PhoneNumberQuickConnectConfigProperty
  set :: PropertyType "PhoneConfig" QuickConnectConfigProperty
-> QuickConnectConfigProperty -> QuickConnectConfigProperty
set PropertyType "PhoneConfig" QuickConnectConfigProperty
newValue QuickConnectConfigProperty {Maybe PhoneNumberQuickConnectConfigProperty
Maybe QueueQuickConnectConfigProperty
Maybe UserQuickConnectConfigProperty
()
Value Text
haddock_workaround_ :: QuickConnectConfigProperty -> ()
phoneConfig :: QuickConnectConfigProperty
-> Maybe PhoneNumberQuickConnectConfigProperty
queueConfig :: QuickConnectConfigProperty -> Maybe QueueQuickConnectConfigProperty
quickConnectType :: QuickConnectConfigProperty -> Value Text
userConfig :: QuickConnectConfigProperty -> Maybe UserQuickConnectConfigProperty
haddock_workaround_ :: ()
phoneConfig :: Maybe PhoneNumberQuickConnectConfigProperty
queueConfig :: Maybe QueueQuickConnectConfigProperty
quickConnectType :: Value Text
userConfig :: Maybe UserQuickConnectConfigProperty
..}
    = QuickConnectConfigProperty
        {phoneConfig :: Maybe PhoneNumberQuickConnectConfigProperty
phoneConfig = PhoneNumberQuickConnectConfigProperty
-> Maybe PhoneNumberQuickConnectConfigProperty
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "PhoneConfig" QuickConnectConfigProperty
PhoneNumberQuickConnectConfigProperty
newValue, Maybe QueueQuickConnectConfigProperty
Maybe UserQuickConnectConfigProperty
()
Value Text
haddock_workaround_ :: ()
queueConfig :: Maybe QueueQuickConnectConfigProperty
quickConnectType :: Value Text
userConfig :: Maybe UserQuickConnectConfigProperty
haddock_workaround_ :: ()
queueConfig :: Maybe QueueQuickConnectConfigProperty
quickConnectType :: Value Text
userConfig :: Maybe UserQuickConnectConfigProperty
..}
instance Property "QueueConfig" QuickConnectConfigProperty where
  type PropertyType "QueueConfig" QuickConnectConfigProperty = QueueQuickConnectConfigProperty
  set :: PropertyType "QueueConfig" QuickConnectConfigProperty
-> QuickConnectConfigProperty -> QuickConnectConfigProperty
set PropertyType "QueueConfig" QuickConnectConfigProperty
newValue QuickConnectConfigProperty {Maybe PhoneNumberQuickConnectConfigProperty
Maybe QueueQuickConnectConfigProperty
Maybe UserQuickConnectConfigProperty
()
Value Text
haddock_workaround_ :: QuickConnectConfigProperty -> ()
phoneConfig :: QuickConnectConfigProperty
-> Maybe PhoneNumberQuickConnectConfigProperty
queueConfig :: QuickConnectConfigProperty -> Maybe QueueQuickConnectConfigProperty
quickConnectType :: QuickConnectConfigProperty -> Value Text
userConfig :: QuickConnectConfigProperty -> Maybe UserQuickConnectConfigProperty
haddock_workaround_ :: ()
phoneConfig :: Maybe PhoneNumberQuickConnectConfigProperty
queueConfig :: Maybe QueueQuickConnectConfigProperty
quickConnectType :: Value Text
userConfig :: Maybe UserQuickConnectConfigProperty
..}
    = QuickConnectConfigProperty
        {queueConfig :: Maybe QueueQuickConnectConfigProperty
queueConfig = QueueQuickConnectConfigProperty
-> Maybe QueueQuickConnectConfigProperty
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "QueueConfig" QuickConnectConfigProperty
QueueQuickConnectConfigProperty
newValue, Maybe PhoneNumberQuickConnectConfigProperty
Maybe UserQuickConnectConfigProperty
()
Value Text
haddock_workaround_ :: ()
phoneConfig :: Maybe PhoneNumberQuickConnectConfigProperty
quickConnectType :: Value Text
userConfig :: Maybe UserQuickConnectConfigProperty
haddock_workaround_ :: ()
phoneConfig :: Maybe PhoneNumberQuickConnectConfigProperty
quickConnectType :: Value Text
userConfig :: Maybe UserQuickConnectConfigProperty
..}
instance Property "QuickConnectType" QuickConnectConfigProperty where
  type PropertyType "QuickConnectType" QuickConnectConfigProperty = Value Prelude.Text
  set :: PropertyType "QuickConnectType" QuickConnectConfigProperty
-> QuickConnectConfigProperty -> QuickConnectConfigProperty
set PropertyType "QuickConnectType" QuickConnectConfigProperty
newValue QuickConnectConfigProperty {Maybe PhoneNumberQuickConnectConfigProperty
Maybe QueueQuickConnectConfigProperty
Maybe UserQuickConnectConfigProperty
()
Value Text
haddock_workaround_ :: QuickConnectConfigProperty -> ()
phoneConfig :: QuickConnectConfigProperty
-> Maybe PhoneNumberQuickConnectConfigProperty
queueConfig :: QuickConnectConfigProperty -> Maybe QueueQuickConnectConfigProperty
quickConnectType :: QuickConnectConfigProperty -> Value Text
userConfig :: QuickConnectConfigProperty -> Maybe UserQuickConnectConfigProperty
haddock_workaround_ :: ()
phoneConfig :: Maybe PhoneNumberQuickConnectConfigProperty
queueConfig :: Maybe QueueQuickConnectConfigProperty
quickConnectType :: Value Text
userConfig :: Maybe UserQuickConnectConfigProperty
..}
    = QuickConnectConfigProperty {quickConnectType :: Value Text
quickConnectType = PropertyType "QuickConnectType" QuickConnectConfigProperty
Value Text
newValue, Maybe PhoneNumberQuickConnectConfigProperty
Maybe QueueQuickConnectConfigProperty
Maybe UserQuickConnectConfigProperty
()
haddock_workaround_ :: ()
phoneConfig :: Maybe PhoneNumberQuickConnectConfigProperty
queueConfig :: Maybe QueueQuickConnectConfigProperty
userConfig :: Maybe UserQuickConnectConfigProperty
haddock_workaround_ :: ()
phoneConfig :: Maybe PhoneNumberQuickConnectConfigProperty
queueConfig :: Maybe QueueQuickConnectConfigProperty
userConfig :: Maybe UserQuickConnectConfigProperty
..}
instance Property "UserConfig" QuickConnectConfigProperty where
  type PropertyType "UserConfig" QuickConnectConfigProperty = UserQuickConnectConfigProperty
  set :: PropertyType "UserConfig" QuickConnectConfigProperty
-> QuickConnectConfigProperty -> QuickConnectConfigProperty
set PropertyType "UserConfig" QuickConnectConfigProperty
newValue QuickConnectConfigProperty {Maybe PhoneNumberQuickConnectConfigProperty
Maybe QueueQuickConnectConfigProperty
Maybe UserQuickConnectConfigProperty
()
Value Text
haddock_workaround_ :: QuickConnectConfigProperty -> ()
phoneConfig :: QuickConnectConfigProperty
-> Maybe PhoneNumberQuickConnectConfigProperty
queueConfig :: QuickConnectConfigProperty -> Maybe QueueQuickConnectConfigProperty
quickConnectType :: QuickConnectConfigProperty -> Value Text
userConfig :: QuickConnectConfigProperty -> Maybe UserQuickConnectConfigProperty
haddock_workaround_ :: ()
phoneConfig :: Maybe PhoneNumberQuickConnectConfigProperty
queueConfig :: Maybe QueueQuickConnectConfigProperty
quickConnectType :: Value Text
userConfig :: Maybe UserQuickConnectConfigProperty
..}
    = QuickConnectConfigProperty
        {userConfig :: Maybe UserQuickConnectConfigProperty
userConfig = UserQuickConnectConfigProperty
-> Maybe UserQuickConnectConfigProperty
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "UserConfig" QuickConnectConfigProperty
UserQuickConnectConfigProperty
newValue, Maybe PhoneNumberQuickConnectConfigProperty
Maybe QueueQuickConnectConfigProperty
()
Value Text
haddock_workaround_ :: ()
phoneConfig :: Maybe PhoneNumberQuickConnectConfigProperty
queueConfig :: Maybe QueueQuickConnectConfigProperty
quickConnectType :: Value Text
haddock_workaround_ :: ()
phoneConfig :: Maybe PhoneNumberQuickConnectConfigProperty
queueConfig :: Maybe QueueQuickConnectConfigProperty
quickConnectType :: Value Text
..}