module Stratosphere.ConnectCampaignsV2.Campaign.PreviewConfigProperty (
module Exports, PreviewConfigProperty(..), mkPreviewConfigProperty
) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import {-# SOURCE #-} Stratosphere.ConnectCampaignsV2.Campaign.TimeoutConfigProperty as Exports
import Stratosphere.ResourceProperties
import Stratosphere.Value
data PreviewConfigProperty
=
PreviewConfigProperty {PreviewConfigProperty -> ()
haddock_workaround_ :: (),
PreviewConfigProperty -> Maybe (ValueList Text)
agentActions :: (Prelude.Maybe (ValueList Prelude.Text)),
PreviewConfigProperty -> Value Double
bandwidthAllocation :: (Value Prelude.Double),
PreviewConfigProperty -> TimeoutConfigProperty
timeoutConfig :: TimeoutConfigProperty}
deriving stock (PreviewConfigProperty -> PreviewConfigProperty -> Bool
(PreviewConfigProperty -> PreviewConfigProperty -> Bool)
-> (PreviewConfigProperty -> PreviewConfigProperty -> Bool)
-> Eq PreviewConfigProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: PreviewConfigProperty -> PreviewConfigProperty -> Bool
== :: PreviewConfigProperty -> PreviewConfigProperty -> Bool
$c/= :: PreviewConfigProperty -> PreviewConfigProperty -> Bool
/= :: PreviewConfigProperty -> PreviewConfigProperty -> Bool
Prelude.Eq, Int -> PreviewConfigProperty -> ShowS
[PreviewConfigProperty] -> ShowS
PreviewConfigProperty -> String
(Int -> PreviewConfigProperty -> ShowS)
-> (PreviewConfigProperty -> String)
-> ([PreviewConfigProperty] -> ShowS)
-> Show PreviewConfigProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> PreviewConfigProperty -> ShowS
showsPrec :: Int -> PreviewConfigProperty -> ShowS
$cshow :: PreviewConfigProperty -> String
show :: PreviewConfigProperty -> String
$cshowList :: [PreviewConfigProperty] -> ShowS
showList :: [PreviewConfigProperty] -> ShowS
Prelude.Show)
mkPreviewConfigProperty ::
Value Prelude.Double
-> TimeoutConfigProperty -> PreviewConfigProperty
mkPreviewConfigProperty :: Value Double -> TimeoutConfigProperty -> PreviewConfigProperty
mkPreviewConfigProperty Value Double
bandwidthAllocation TimeoutConfigProperty
timeoutConfig
= PreviewConfigProperty
{haddock_workaround_ :: ()
haddock_workaround_ = (),
bandwidthAllocation :: Value Double
bandwidthAllocation = Value Double
bandwidthAllocation,
timeoutConfig :: TimeoutConfigProperty
timeoutConfig = TimeoutConfigProperty
timeoutConfig, agentActions :: Maybe (ValueList Text)
agentActions = Maybe (ValueList Text)
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties PreviewConfigProperty where
toResourceProperties :: PreviewConfigProperty -> ResourceProperties
toResourceProperties PreviewConfigProperty {Maybe (ValueList Text)
()
Value Double
TimeoutConfigProperty
haddock_workaround_ :: PreviewConfigProperty -> ()
agentActions :: PreviewConfigProperty -> Maybe (ValueList Text)
bandwidthAllocation :: PreviewConfigProperty -> Value Double
timeoutConfig :: PreviewConfigProperty -> TimeoutConfigProperty
haddock_workaround_ :: ()
agentActions :: Maybe (ValueList Text)
bandwidthAllocation :: Value Double
timeoutConfig :: TimeoutConfigProperty
..}
= ResourceProperties
{awsType :: Text
awsType = Text
"AWS::ConnectCampaignsV2::Campaign.PreviewConfig",
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
"BandwidthAllocation" Key -> Value Double -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
JSON..= Value Double
bandwidthAllocation,
Key
"TimeoutConfig" Key -> TimeoutConfigProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
JSON..= TimeoutConfigProperty
timeoutConfig]
([Maybe (Key, Value)] -> [(Key, Value)]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
[Key -> ValueList 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
"AgentActions" (ValueList Text -> (Key, Value))
-> Maybe (ValueList Text) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (ValueList Text)
agentActions]))}
instance JSON.ToJSON PreviewConfigProperty where
toJSON :: PreviewConfigProperty -> Value
toJSON PreviewConfigProperty {Maybe (ValueList Text)
()
Value Double
TimeoutConfigProperty
haddock_workaround_ :: PreviewConfigProperty -> ()
agentActions :: PreviewConfigProperty -> Maybe (ValueList Text)
bandwidthAllocation :: PreviewConfigProperty -> Value Double
timeoutConfig :: PreviewConfigProperty -> TimeoutConfigProperty
haddock_workaround_ :: ()
agentActions :: Maybe (ValueList Text)
bandwidthAllocation :: Value Double
timeoutConfig :: TimeoutConfigProperty
..}
= [(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
"BandwidthAllocation" Key -> Value Double -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
JSON..= Value Double
bandwidthAllocation,
Key
"TimeoutConfig" Key -> TimeoutConfigProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
JSON..= TimeoutConfigProperty
timeoutConfig]
([Maybe (Key, Value)] -> [(Key, Value)]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
[Key -> ValueList 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
"AgentActions" (ValueList Text -> (Key, Value))
-> Maybe (ValueList Text) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (ValueList Text)
agentActions])))
instance Property "AgentActions" PreviewConfigProperty where
type PropertyType "AgentActions" PreviewConfigProperty = ValueList Prelude.Text
set :: PropertyType "AgentActions" PreviewConfigProperty
-> PreviewConfigProperty -> PreviewConfigProperty
set PropertyType "AgentActions" PreviewConfigProperty
newValue PreviewConfigProperty {Maybe (ValueList Text)
()
Value Double
TimeoutConfigProperty
haddock_workaround_ :: PreviewConfigProperty -> ()
agentActions :: PreviewConfigProperty -> Maybe (ValueList Text)
bandwidthAllocation :: PreviewConfigProperty -> Value Double
timeoutConfig :: PreviewConfigProperty -> TimeoutConfigProperty
haddock_workaround_ :: ()
agentActions :: Maybe (ValueList Text)
bandwidthAllocation :: Value Double
timeoutConfig :: TimeoutConfigProperty
..}
= PreviewConfigProperty {agentActions :: Maybe (ValueList Text)
agentActions = ValueList Text -> Maybe (ValueList Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "AgentActions" PreviewConfigProperty
ValueList Text
newValue, ()
Value Double
TimeoutConfigProperty
haddock_workaround_ :: ()
bandwidthAllocation :: Value Double
timeoutConfig :: TimeoutConfigProperty
haddock_workaround_ :: ()
bandwidthAllocation :: Value Double
timeoutConfig :: TimeoutConfigProperty
..}
instance Property "BandwidthAllocation" PreviewConfigProperty where
type PropertyType "BandwidthAllocation" PreviewConfigProperty = Value Prelude.Double
set :: PropertyType "BandwidthAllocation" PreviewConfigProperty
-> PreviewConfigProperty -> PreviewConfigProperty
set PropertyType "BandwidthAllocation" PreviewConfigProperty
newValue PreviewConfigProperty {Maybe (ValueList Text)
()
Value Double
TimeoutConfigProperty
haddock_workaround_ :: PreviewConfigProperty -> ()
agentActions :: PreviewConfigProperty -> Maybe (ValueList Text)
bandwidthAllocation :: PreviewConfigProperty -> Value Double
timeoutConfig :: PreviewConfigProperty -> TimeoutConfigProperty
haddock_workaround_ :: ()
agentActions :: Maybe (ValueList Text)
bandwidthAllocation :: Value Double
timeoutConfig :: TimeoutConfigProperty
..}
= PreviewConfigProperty {bandwidthAllocation :: Value Double
bandwidthAllocation = PropertyType "BandwidthAllocation" PreviewConfigProperty
Value Double
newValue, Maybe (ValueList Text)
()
TimeoutConfigProperty
haddock_workaround_ :: ()
agentActions :: Maybe (ValueList Text)
timeoutConfig :: TimeoutConfigProperty
haddock_workaround_ :: ()
agentActions :: Maybe (ValueList Text)
timeoutConfig :: TimeoutConfigProperty
..}
instance Property "TimeoutConfig" PreviewConfigProperty where
type PropertyType "TimeoutConfig" PreviewConfigProperty = TimeoutConfigProperty
set :: PropertyType "TimeoutConfig" PreviewConfigProperty
-> PreviewConfigProperty -> PreviewConfigProperty
set PropertyType "TimeoutConfig" PreviewConfigProperty
newValue PreviewConfigProperty {Maybe (ValueList Text)
()
Value Double
TimeoutConfigProperty
haddock_workaround_ :: PreviewConfigProperty -> ()
agentActions :: PreviewConfigProperty -> Maybe (ValueList Text)
bandwidthAllocation :: PreviewConfigProperty -> Value Double
timeoutConfig :: PreviewConfigProperty -> TimeoutConfigProperty
haddock_workaround_ :: ()
agentActions :: Maybe (ValueList Text)
bandwidthAllocation :: Value Double
timeoutConfig :: TimeoutConfigProperty
..}
= PreviewConfigProperty {timeoutConfig :: TimeoutConfigProperty
timeoutConfig = PropertyType "TimeoutConfig" PreviewConfigProperty
TimeoutConfigProperty
newValue, Maybe (ValueList Text)
()
Value Double
haddock_workaround_ :: ()
agentActions :: Maybe (ValueList Text)
bandwidthAllocation :: Value Double
haddock_workaround_ :: ()
agentActions :: Maybe (ValueList Text)
bandwidthAllocation :: Value Double
..}