module Stratosphere.Connect.RoutingProfile.MediaConcurrencyProperty (
module Exports, MediaConcurrencyProperty(..),
mkMediaConcurrencyProperty
) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import {-# SOURCE #-} Stratosphere.Connect.RoutingProfile.CrossChannelBehaviorProperty as Exports
import Stratosphere.ResourceProperties
import Stratosphere.Value
data MediaConcurrencyProperty
=
MediaConcurrencyProperty {MediaConcurrencyProperty -> ()
haddock_workaround_ :: (),
MediaConcurrencyProperty -> Value Text
channel :: (Value Prelude.Text),
MediaConcurrencyProperty -> Value Integer
concurrency :: (Value Prelude.Integer),
MediaConcurrencyProperty -> Maybe CrossChannelBehaviorProperty
crossChannelBehavior :: (Prelude.Maybe CrossChannelBehaviorProperty)}
deriving stock (MediaConcurrencyProperty -> MediaConcurrencyProperty -> Bool
(MediaConcurrencyProperty -> MediaConcurrencyProperty -> Bool)
-> (MediaConcurrencyProperty -> MediaConcurrencyProperty -> Bool)
-> Eq MediaConcurrencyProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: MediaConcurrencyProperty -> MediaConcurrencyProperty -> Bool
== :: MediaConcurrencyProperty -> MediaConcurrencyProperty -> Bool
$c/= :: MediaConcurrencyProperty -> MediaConcurrencyProperty -> Bool
/= :: MediaConcurrencyProperty -> MediaConcurrencyProperty -> Bool
Prelude.Eq, Int -> MediaConcurrencyProperty -> ShowS
[MediaConcurrencyProperty] -> ShowS
MediaConcurrencyProperty -> String
(Int -> MediaConcurrencyProperty -> ShowS)
-> (MediaConcurrencyProperty -> String)
-> ([MediaConcurrencyProperty] -> ShowS)
-> Show MediaConcurrencyProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> MediaConcurrencyProperty -> ShowS
showsPrec :: Int -> MediaConcurrencyProperty -> ShowS
$cshow :: MediaConcurrencyProperty -> String
show :: MediaConcurrencyProperty -> String
$cshowList :: [MediaConcurrencyProperty] -> ShowS
showList :: [MediaConcurrencyProperty] -> ShowS
Prelude.Show)
mkMediaConcurrencyProperty ::
Value Prelude.Text
-> Value Prelude.Integer -> MediaConcurrencyProperty
mkMediaConcurrencyProperty :: Value Text -> Value Integer -> MediaConcurrencyProperty
mkMediaConcurrencyProperty Value Text
channel Value Integer
concurrency
= MediaConcurrencyProperty
{haddock_workaround_ :: ()
haddock_workaround_ = (), channel :: Value Text
channel = Value Text
channel,
concurrency :: Value Integer
concurrency = Value Integer
concurrency, crossChannelBehavior :: Maybe CrossChannelBehaviorProperty
crossChannelBehavior = Maybe CrossChannelBehaviorProperty
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties MediaConcurrencyProperty where
toResourceProperties :: MediaConcurrencyProperty -> ResourceProperties
toResourceProperties MediaConcurrencyProperty {Maybe CrossChannelBehaviorProperty
()
Value Integer
Value Text
haddock_workaround_ :: MediaConcurrencyProperty -> ()
channel :: MediaConcurrencyProperty -> Value Text
concurrency :: MediaConcurrencyProperty -> Value Integer
crossChannelBehavior :: MediaConcurrencyProperty -> Maybe CrossChannelBehaviorProperty
haddock_workaround_ :: ()
channel :: Value Text
concurrency :: Value Integer
crossChannelBehavior :: Maybe CrossChannelBehaviorProperty
..}
= ResourceProperties
{awsType :: Text
awsType = Text
"AWS::Connect::RoutingProfile.MediaConcurrency",
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
"Channel" 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
channel, Key
"Concurrency" Key -> Value Integer -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
JSON..= Value Integer
concurrency]
([Maybe (Key, Value)] -> [(Key, Value)]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
[Key -> CrossChannelBehaviorProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"CrossChannelBehavior"
(CrossChannelBehaviorProperty -> (Key, Value))
-> Maybe CrossChannelBehaviorProperty -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe CrossChannelBehaviorProperty
crossChannelBehavior]))}
instance JSON.ToJSON MediaConcurrencyProperty where
toJSON :: MediaConcurrencyProperty -> Value
toJSON MediaConcurrencyProperty {Maybe CrossChannelBehaviorProperty
()
Value Integer
Value Text
haddock_workaround_ :: MediaConcurrencyProperty -> ()
channel :: MediaConcurrencyProperty -> Value Text
concurrency :: MediaConcurrencyProperty -> Value Integer
crossChannelBehavior :: MediaConcurrencyProperty -> Maybe CrossChannelBehaviorProperty
haddock_workaround_ :: ()
channel :: Value Text
concurrency :: Value Integer
crossChannelBehavior :: Maybe CrossChannelBehaviorProperty
..}
= [(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
"Channel" 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
channel, Key
"Concurrency" Key -> Value Integer -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
JSON..= Value Integer
concurrency]
([Maybe (Key, Value)] -> [(Key, Value)]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
[Key -> CrossChannelBehaviorProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"CrossChannelBehavior"
(CrossChannelBehaviorProperty -> (Key, Value))
-> Maybe CrossChannelBehaviorProperty -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe CrossChannelBehaviorProperty
crossChannelBehavior])))
instance Property "Channel" MediaConcurrencyProperty where
type PropertyType "Channel" MediaConcurrencyProperty = Value Prelude.Text
set :: PropertyType "Channel" MediaConcurrencyProperty
-> MediaConcurrencyProperty -> MediaConcurrencyProperty
set PropertyType "Channel" MediaConcurrencyProperty
newValue MediaConcurrencyProperty {Maybe CrossChannelBehaviorProperty
()
Value Integer
Value Text
haddock_workaround_ :: MediaConcurrencyProperty -> ()
channel :: MediaConcurrencyProperty -> Value Text
concurrency :: MediaConcurrencyProperty -> Value Integer
crossChannelBehavior :: MediaConcurrencyProperty -> Maybe CrossChannelBehaviorProperty
haddock_workaround_ :: ()
channel :: Value Text
concurrency :: Value Integer
crossChannelBehavior :: Maybe CrossChannelBehaviorProperty
..}
= MediaConcurrencyProperty {channel :: Value Text
channel = PropertyType "Channel" MediaConcurrencyProperty
Value Text
newValue, Maybe CrossChannelBehaviorProperty
()
Value Integer
haddock_workaround_ :: ()
concurrency :: Value Integer
crossChannelBehavior :: Maybe CrossChannelBehaviorProperty
haddock_workaround_ :: ()
concurrency :: Value Integer
crossChannelBehavior :: Maybe CrossChannelBehaviorProperty
..}
instance Property "Concurrency" MediaConcurrencyProperty where
type PropertyType "Concurrency" MediaConcurrencyProperty = Value Prelude.Integer
set :: PropertyType "Concurrency" MediaConcurrencyProperty
-> MediaConcurrencyProperty -> MediaConcurrencyProperty
set PropertyType "Concurrency" MediaConcurrencyProperty
newValue MediaConcurrencyProperty {Maybe CrossChannelBehaviorProperty
()
Value Integer
Value Text
haddock_workaround_ :: MediaConcurrencyProperty -> ()
channel :: MediaConcurrencyProperty -> Value Text
concurrency :: MediaConcurrencyProperty -> Value Integer
crossChannelBehavior :: MediaConcurrencyProperty -> Maybe CrossChannelBehaviorProperty
haddock_workaround_ :: ()
channel :: Value Text
concurrency :: Value Integer
crossChannelBehavior :: Maybe CrossChannelBehaviorProperty
..}
= MediaConcurrencyProperty {concurrency :: Value Integer
concurrency = PropertyType "Concurrency" MediaConcurrencyProperty
Value Integer
newValue, Maybe CrossChannelBehaviorProperty
()
Value Text
haddock_workaround_ :: ()
channel :: Value Text
crossChannelBehavior :: Maybe CrossChannelBehaviorProperty
haddock_workaround_ :: ()
channel :: Value Text
crossChannelBehavior :: Maybe CrossChannelBehaviorProperty
..}
instance Property "CrossChannelBehavior" MediaConcurrencyProperty where
type PropertyType "CrossChannelBehavior" MediaConcurrencyProperty = CrossChannelBehaviorProperty
set :: PropertyType "CrossChannelBehavior" MediaConcurrencyProperty
-> MediaConcurrencyProperty -> MediaConcurrencyProperty
set PropertyType "CrossChannelBehavior" MediaConcurrencyProperty
newValue MediaConcurrencyProperty {Maybe CrossChannelBehaviorProperty
()
Value Integer
Value Text
haddock_workaround_ :: MediaConcurrencyProperty -> ()
channel :: MediaConcurrencyProperty -> Value Text
concurrency :: MediaConcurrencyProperty -> Value Integer
crossChannelBehavior :: MediaConcurrencyProperty -> Maybe CrossChannelBehaviorProperty
haddock_workaround_ :: ()
channel :: Value Text
concurrency :: Value Integer
crossChannelBehavior :: Maybe CrossChannelBehaviorProperty
..}
= MediaConcurrencyProperty
{crossChannelBehavior :: Maybe CrossChannelBehaviorProperty
crossChannelBehavior = CrossChannelBehaviorProperty -> Maybe CrossChannelBehaviorProperty
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "CrossChannelBehavior" MediaConcurrencyProperty
CrossChannelBehaviorProperty
newValue, ()
Value Integer
Value Text
haddock_workaround_ :: ()
channel :: Value Text
concurrency :: Value Integer
haddock_workaround_ :: ()
channel :: Value Text
concurrency :: Value Integer
..}