module Stratosphere.ConnectCampaignsV2.Campaign.CommunicationLimitsConfigProperty (
module Exports, CommunicationLimitsConfigProperty(..),
mkCommunicationLimitsConfigProperty
) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import {-# SOURCE #-} Stratosphere.ConnectCampaignsV2.Campaign.CommunicationLimitsProperty as Exports
import Stratosphere.ResourceProperties
import Stratosphere.Value
data CommunicationLimitsConfigProperty
=
CommunicationLimitsConfigProperty {CommunicationLimitsConfigProperty -> ()
haddock_workaround_ :: (),
CommunicationLimitsConfigProperty
-> Maybe CommunicationLimitsProperty
allChannelsSubtypes :: (Prelude.Maybe CommunicationLimitsProperty),
CommunicationLimitsConfigProperty -> Maybe (Value Text)
instanceLimitsHandling :: (Prelude.Maybe (Value Prelude.Text))}
deriving stock (CommunicationLimitsConfigProperty
-> CommunicationLimitsConfigProperty -> Bool
(CommunicationLimitsConfigProperty
-> CommunicationLimitsConfigProperty -> Bool)
-> (CommunicationLimitsConfigProperty
-> CommunicationLimitsConfigProperty -> Bool)
-> Eq CommunicationLimitsConfigProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: CommunicationLimitsConfigProperty
-> CommunicationLimitsConfigProperty -> Bool
== :: CommunicationLimitsConfigProperty
-> CommunicationLimitsConfigProperty -> Bool
$c/= :: CommunicationLimitsConfigProperty
-> CommunicationLimitsConfigProperty -> Bool
/= :: CommunicationLimitsConfigProperty
-> CommunicationLimitsConfigProperty -> Bool
Prelude.Eq, Int -> CommunicationLimitsConfigProperty -> ShowS
[CommunicationLimitsConfigProperty] -> ShowS
CommunicationLimitsConfigProperty -> String
(Int -> CommunicationLimitsConfigProperty -> ShowS)
-> (CommunicationLimitsConfigProperty -> String)
-> ([CommunicationLimitsConfigProperty] -> ShowS)
-> Show CommunicationLimitsConfigProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> CommunicationLimitsConfigProperty -> ShowS
showsPrec :: Int -> CommunicationLimitsConfigProperty -> ShowS
$cshow :: CommunicationLimitsConfigProperty -> String
show :: CommunicationLimitsConfigProperty -> String
$cshowList :: [CommunicationLimitsConfigProperty] -> ShowS
showList :: [CommunicationLimitsConfigProperty] -> ShowS
Prelude.Show)
mkCommunicationLimitsConfigProperty ::
CommunicationLimitsConfigProperty
mkCommunicationLimitsConfigProperty :: CommunicationLimitsConfigProperty
mkCommunicationLimitsConfigProperty
= CommunicationLimitsConfigProperty
{haddock_workaround_ :: ()
haddock_workaround_ = (), allChannelsSubtypes :: Maybe CommunicationLimitsProperty
allChannelsSubtypes = Maybe CommunicationLimitsProperty
forall a. Maybe a
Prelude.Nothing,
instanceLimitsHandling :: Maybe (Value Text)
instanceLimitsHandling = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties CommunicationLimitsConfigProperty where
toResourceProperties :: CommunicationLimitsConfigProperty -> ResourceProperties
toResourceProperties CommunicationLimitsConfigProperty {Maybe (Value Text)
Maybe CommunicationLimitsProperty
()
haddock_workaround_ :: CommunicationLimitsConfigProperty -> ()
allChannelsSubtypes :: CommunicationLimitsConfigProperty
-> Maybe CommunicationLimitsProperty
instanceLimitsHandling :: CommunicationLimitsConfigProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
allChannelsSubtypes :: Maybe CommunicationLimitsProperty
instanceLimitsHandling :: Maybe (Value Text)
..}
= ResourceProperties
{awsType :: Text
awsType = Text
"AWS::ConnectCampaignsV2::Campaign.CommunicationLimitsConfig",
supportsTags :: Bool
supportsTags = Bool
Prelude.False,
properties :: Object
properties = [Item Object] -> Object
forall l. IsList l => [Item l] -> l
Prelude.fromList
([Maybe (Key, Value)] -> [(Key, Value)]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
[Key -> CommunicationLimitsProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"AllChannelsSubtypes" (CommunicationLimitsProperty -> (Key, Value))
-> Maybe CommunicationLimitsProperty -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe CommunicationLimitsProperty
allChannelsSubtypes,
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
"InstanceLimitsHandling"
(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)
instanceLimitsHandling])}
instance JSON.ToJSON CommunicationLimitsConfigProperty where
toJSON :: CommunicationLimitsConfigProperty -> Value
toJSON CommunicationLimitsConfigProperty {Maybe (Value Text)
Maybe CommunicationLimitsProperty
()
haddock_workaround_ :: CommunicationLimitsConfigProperty -> ()
allChannelsSubtypes :: CommunicationLimitsConfigProperty
-> Maybe CommunicationLimitsProperty
instanceLimitsHandling :: CommunicationLimitsConfigProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
allChannelsSubtypes :: Maybe CommunicationLimitsProperty
instanceLimitsHandling :: Maybe (Value Text)
..}
= [(Key, Value)] -> Value
JSON.object
([Item [(Key, Value)]] -> [(Key, Value)]
forall l. IsList l => [Item l] -> l
Prelude.fromList
([Maybe (Key, Value)] -> [(Key, Value)]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
[Key -> CommunicationLimitsProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"AllChannelsSubtypes" (CommunicationLimitsProperty -> (Key, Value))
-> Maybe CommunicationLimitsProperty -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe CommunicationLimitsProperty
allChannelsSubtypes,
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
"InstanceLimitsHandling"
(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)
instanceLimitsHandling]))
instance Property "AllChannelsSubtypes" CommunicationLimitsConfigProperty where
type PropertyType "AllChannelsSubtypes" CommunicationLimitsConfigProperty = CommunicationLimitsProperty
set :: PropertyType
"AllChannelsSubtypes" CommunicationLimitsConfigProperty
-> CommunicationLimitsConfigProperty
-> CommunicationLimitsConfigProperty
set PropertyType
"AllChannelsSubtypes" CommunicationLimitsConfigProperty
newValue CommunicationLimitsConfigProperty {Maybe (Value Text)
Maybe CommunicationLimitsProperty
()
haddock_workaround_ :: CommunicationLimitsConfigProperty -> ()
allChannelsSubtypes :: CommunicationLimitsConfigProperty
-> Maybe CommunicationLimitsProperty
instanceLimitsHandling :: CommunicationLimitsConfigProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
allChannelsSubtypes :: Maybe CommunicationLimitsProperty
instanceLimitsHandling :: Maybe (Value Text)
..}
= CommunicationLimitsConfigProperty
{allChannelsSubtypes :: Maybe CommunicationLimitsProperty
allChannelsSubtypes = CommunicationLimitsProperty -> Maybe CommunicationLimitsProperty
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType
"AllChannelsSubtypes" CommunicationLimitsConfigProperty
CommunicationLimitsProperty
newValue, Maybe (Value Text)
()
haddock_workaround_ :: ()
instanceLimitsHandling :: Maybe (Value Text)
haddock_workaround_ :: ()
instanceLimitsHandling :: Maybe (Value Text)
..}
instance Property "InstanceLimitsHandling" CommunicationLimitsConfigProperty where
type PropertyType "InstanceLimitsHandling" CommunicationLimitsConfigProperty = Value Prelude.Text
set :: PropertyType
"InstanceLimitsHandling" CommunicationLimitsConfigProperty
-> CommunicationLimitsConfigProperty
-> CommunicationLimitsConfigProperty
set PropertyType
"InstanceLimitsHandling" CommunicationLimitsConfigProperty
newValue CommunicationLimitsConfigProperty {Maybe (Value Text)
Maybe CommunicationLimitsProperty
()
haddock_workaround_ :: CommunicationLimitsConfigProperty -> ()
allChannelsSubtypes :: CommunicationLimitsConfigProperty
-> Maybe CommunicationLimitsProperty
instanceLimitsHandling :: CommunicationLimitsConfigProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
allChannelsSubtypes :: Maybe CommunicationLimitsProperty
instanceLimitsHandling :: Maybe (Value Text)
..}
= CommunicationLimitsConfigProperty
{instanceLimitsHandling :: Maybe (Value Text)
instanceLimitsHandling = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType
"InstanceLimitsHandling" CommunicationLimitsConfigProperty
Value Text
newValue, Maybe CommunicationLimitsProperty
()
haddock_workaround_ :: ()
allChannelsSubtypes :: Maybe CommunicationLimitsProperty
haddock_workaround_ :: ()
allChannelsSubtypes :: Maybe CommunicationLimitsProperty
..}