module Stratosphere.KinesisAnalyticsV2.Application.ParallelismConfigurationProperty (
ParallelismConfigurationProperty(..),
mkParallelismConfigurationProperty
) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data ParallelismConfigurationProperty
=
ParallelismConfigurationProperty {ParallelismConfigurationProperty -> ()
haddock_workaround_ :: (),
ParallelismConfigurationProperty -> Maybe (Value Bool)
autoScalingEnabled :: (Prelude.Maybe (Value Prelude.Bool)),
ParallelismConfigurationProperty -> Value Text
configurationType :: (Value Prelude.Text),
ParallelismConfigurationProperty -> Maybe (Value Integer)
parallelism :: (Prelude.Maybe (Value Prelude.Integer)),
ParallelismConfigurationProperty -> Maybe (Value Integer)
parallelismPerKPU :: (Prelude.Maybe (Value Prelude.Integer))}
deriving stock (ParallelismConfigurationProperty
-> ParallelismConfigurationProperty -> Bool
(ParallelismConfigurationProperty
-> ParallelismConfigurationProperty -> Bool)
-> (ParallelismConfigurationProperty
-> ParallelismConfigurationProperty -> Bool)
-> Eq ParallelismConfigurationProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: ParallelismConfigurationProperty
-> ParallelismConfigurationProperty -> Bool
== :: ParallelismConfigurationProperty
-> ParallelismConfigurationProperty -> Bool
$c/= :: ParallelismConfigurationProperty
-> ParallelismConfigurationProperty -> Bool
/= :: ParallelismConfigurationProperty
-> ParallelismConfigurationProperty -> Bool
Prelude.Eq, Int -> ParallelismConfigurationProperty -> ShowS
[ParallelismConfigurationProperty] -> ShowS
ParallelismConfigurationProperty -> String
(Int -> ParallelismConfigurationProperty -> ShowS)
-> (ParallelismConfigurationProperty -> String)
-> ([ParallelismConfigurationProperty] -> ShowS)
-> Show ParallelismConfigurationProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> ParallelismConfigurationProperty -> ShowS
showsPrec :: Int -> ParallelismConfigurationProperty -> ShowS
$cshow :: ParallelismConfigurationProperty -> String
show :: ParallelismConfigurationProperty -> String
$cshowList :: [ParallelismConfigurationProperty] -> ShowS
showList :: [ParallelismConfigurationProperty] -> ShowS
Prelude.Show)
mkParallelismConfigurationProperty ::
Value Prelude.Text -> ParallelismConfigurationProperty
mkParallelismConfigurationProperty :: Value Text -> ParallelismConfigurationProperty
mkParallelismConfigurationProperty Value Text
configurationType
= ParallelismConfigurationProperty
{haddock_workaround_ :: ()
haddock_workaround_ = (), configurationType :: Value Text
configurationType = Value Text
configurationType,
autoScalingEnabled :: Maybe (Value Bool)
autoScalingEnabled = Maybe (Value Bool)
forall a. Maybe a
Prelude.Nothing,
parallelism :: Maybe (Value Integer)
parallelism = Maybe (Value Integer)
forall a. Maybe a
Prelude.Nothing, parallelismPerKPU :: Maybe (Value Integer)
parallelismPerKPU = Maybe (Value Integer)
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties ParallelismConfigurationProperty where
toResourceProperties :: ParallelismConfigurationProperty -> ResourceProperties
toResourceProperties ParallelismConfigurationProperty {Maybe (Value Bool)
Maybe (Value Integer)
()
Value Text
haddock_workaround_ :: ParallelismConfigurationProperty -> ()
autoScalingEnabled :: ParallelismConfigurationProperty -> Maybe (Value Bool)
configurationType :: ParallelismConfigurationProperty -> Value Text
parallelism :: ParallelismConfigurationProperty -> Maybe (Value Integer)
parallelismPerKPU :: ParallelismConfigurationProperty -> Maybe (Value Integer)
haddock_workaround_ :: ()
autoScalingEnabled :: Maybe (Value Bool)
configurationType :: Value Text
parallelism :: Maybe (Value Integer)
parallelismPerKPU :: Maybe (Value Integer)
..}
= ResourceProperties
{awsType :: Text
awsType = Text
"AWS::KinesisAnalyticsV2::Application.ParallelismConfiguration",
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
"ConfigurationType" 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
configurationType]
([Maybe (Key, Value)] -> [(Key, Value)]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
[Key -> Value Bool -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"AutoScalingEnabled" (Value Bool -> (Key, Value))
-> Maybe (Value Bool) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Bool)
autoScalingEnabled,
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..=) Key
"Parallelism" (Value Integer -> (Key, Value))
-> Maybe (Value Integer) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Integer)
parallelism,
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..=) Key
"ParallelismPerKPU" (Value Integer -> (Key, Value))
-> Maybe (Value Integer) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Integer)
parallelismPerKPU]))}
instance JSON.ToJSON ParallelismConfigurationProperty where
toJSON :: ParallelismConfigurationProperty -> Value
toJSON ParallelismConfigurationProperty {Maybe (Value Bool)
Maybe (Value Integer)
()
Value Text
haddock_workaround_ :: ParallelismConfigurationProperty -> ()
autoScalingEnabled :: ParallelismConfigurationProperty -> Maybe (Value Bool)
configurationType :: ParallelismConfigurationProperty -> Value Text
parallelism :: ParallelismConfigurationProperty -> Maybe (Value Integer)
parallelismPerKPU :: ParallelismConfigurationProperty -> Maybe (Value Integer)
haddock_workaround_ :: ()
autoScalingEnabled :: Maybe (Value Bool)
configurationType :: Value Text
parallelism :: Maybe (Value Integer)
parallelismPerKPU :: Maybe (Value Integer)
..}
= [(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
"ConfigurationType" 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
configurationType]
([Maybe (Key, Value)] -> [(Key, Value)]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
[Key -> Value Bool -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"AutoScalingEnabled" (Value Bool -> (Key, Value))
-> Maybe (Value Bool) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Bool)
autoScalingEnabled,
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..=) Key
"Parallelism" (Value Integer -> (Key, Value))
-> Maybe (Value Integer) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Integer)
parallelism,
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..=) Key
"ParallelismPerKPU" (Value Integer -> (Key, Value))
-> Maybe (Value Integer) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Integer)
parallelismPerKPU])))
instance Property "AutoScalingEnabled" ParallelismConfigurationProperty where
type PropertyType "AutoScalingEnabled" ParallelismConfigurationProperty = Value Prelude.Bool
set :: PropertyType "AutoScalingEnabled" ParallelismConfigurationProperty
-> ParallelismConfigurationProperty
-> ParallelismConfigurationProperty
set PropertyType "AutoScalingEnabled" ParallelismConfigurationProperty
newValue ParallelismConfigurationProperty {Maybe (Value Bool)
Maybe (Value Integer)
()
Value Text
haddock_workaround_ :: ParallelismConfigurationProperty -> ()
autoScalingEnabled :: ParallelismConfigurationProperty -> Maybe (Value Bool)
configurationType :: ParallelismConfigurationProperty -> Value Text
parallelism :: ParallelismConfigurationProperty -> Maybe (Value Integer)
parallelismPerKPU :: ParallelismConfigurationProperty -> Maybe (Value Integer)
haddock_workaround_ :: ()
autoScalingEnabled :: Maybe (Value Bool)
configurationType :: Value Text
parallelism :: Maybe (Value Integer)
parallelismPerKPU :: Maybe (Value Integer)
..}
= ParallelismConfigurationProperty
{autoScalingEnabled :: Maybe (Value Bool)
autoScalingEnabled = Value Bool -> Maybe (Value Bool)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "AutoScalingEnabled" ParallelismConfigurationProperty
Value Bool
newValue, Maybe (Value Integer)
()
Value Text
haddock_workaround_ :: ()
configurationType :: Value Text
parallelism :: Maybe (Value Integer)
parallelismPerKPU :: Maybe (Value Integer)
haddock_workaround_ :: ()
configurationType :: Value Text
parallelism :: Maybe (Value Integer)
parallelismPerKPU :: Maybe (Value Integer)
..}
instance Property "ConfigurationType" ParallelismConfigurationProperty where
type PropertyType "ConfigurationType" ParallelismConfigurationProperty = Value Prelude.Text
set :: PropertyType "ConfigurationType" ParallelismConfigurationProperty
-> ParallelismConfigurationProperty
-> ParallelismConfigurationProperty
set PropertyType "ConfigurationType" ParallelismConfigurationProperty
newValue ParallelismConfigurationProperty {Maybe (Value Bool)
Maybe (Value Integer)
()
Value Text
haddock_workaround_ :: ParallelismConfigurationProperty -> ()
autoScalingEnabled :: ParallelismConfigurationProperty -> Maybe (Value Bool)
configurationType :: ParallelismConfigurationProperty -> Value Text
parallelism :: ParallelismConfigurationProperty -> Maybe (Value Integer)
parallelismPerKPU :: ParallelismConfigurationProperty -> Maybe (Value Integer)
haddock_workaround_ :: ()
autoScalingEnabled :: Maybe (Value Bool)
configurationType :: Value Text
parallelism :: Maybe (Value Integer)
parallelismPerKPU :: Maybe (Value Integer)
..}
= ParallelismConfigurationProperty
{configurationType :: Value Text
configurationType = PropertyType "ConfigurationType" ParallelismConfigurationProperty
Value Text
newValue, Maybe (Value Bool)
Maybe (Value Integer)
()
haddock_workaround_ :: ()
autoScalingEnabled :: Maybe (Value Bool)
parallelism :: Maybe (Value Integer)
parallelismPerKPU :: Maybe (Value Integer)
haddock_workaround_ :: ()
autoScalingEnabled :: Maybe (Value Bool)
parallelism :: Maybe (Value Integer)
parallelismPerKPU :: Maybe (Value Integer)
..}
instance Property "Parallelism" ParallelismConfigurationProperty where
type PropertyType "Parallelism" ParallelismConfigurationProperty = Value Prelude.Integer
set :: PropertyType "Parallelism" ParallelismConfigurationProperty
-> ParallelismConfigurationProperty
-> ParallelismConfigurationProperty
set PropertyType "Parallelism" ParallelismConfigurationProperty
newValue ParallelismConfigurationProperty {Maybe (Value Bool)
Maybe (Value Integer)
()
Value Text
haddock_workaround_ :: ParallelismConfigurationProperty -> ()
autoScalingEnabled :: ParallelismConfigurationProperty -> Maybe (Value Bool)
configurationType :: ParallelismConfigurationProperty -> Value Text
parallelism :: ParallelismConfigurationProperty -> Maybe (Value Integer)
parallelismPerKPU :: ParallelismConfigurationProperty -> Maybe (Value Integer)
haddock_workaround_ :: ()
autoScalingEnabled :: Maybe (Value Bool)
configurationType :: Value Text
parallelism :: Maybe (Value Integer)
parallelismPerKPU :: Maybe (Value Integer)
..}
= ParallelismConfigurationProperty
{parallelism :: Maybe (Value Integer)
parallelism = Value Integer -> Maybe (Value Integer)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "Parallelism" ParallelismConfigurationProperty
Value Integer
newValue, Maybe (Value Bool)
Maybe (Value Integer)
()
Value Text
haddock_workaround_ :: ()
autoScalingEnabled :: Maybe (Value Bool)
configurationType :: Value Text
parallelismPerKPU :: Maybe (Value Integer)
haddock_workaround_ :: ()
autoScalingEnabled :: Maybe (Value Bool)
configurationType :: Value Text
parallelismPerKPU :: Maybe (Value Integer)
..}
instance Property "ParallelismPerKPU" ParallelismConfigurationProperty where
type PropertyType "ParallelismPerKPU" ParallelismConfigurationProperty = Value Prelude.Integer
set :: PropertyType "ParallelismPerKPU" ParallelismConfigurationProperty
-> ParallelismConfigurationProperty
-> ParallelismConfigurationProperty
set PropertyType "ParallelismPerKPU" ParallelismConfigurationProperty
newValue ParallelismConfigurationProperty {Maybe (Value Bool)
Maybe (Value Integer)
()
Value Text
haddock_workaround_ :: ParallelismConfigurationProperty -> ()
autoScalingEnabled :: ParallelismConfigurationProperty -> Maybe (Value Bool)
configurationType :: ParallelismConfigurationProperty -> Value Text
parallelism :: ParallelismConfigurationProperty -> Maybe (Value Integer)
parallelismPerKPU :: ParallelismConfigurationProperty -> Maybe (Value Integer)
haddock_workaround_ :: ()
autoScalingEnabled :: Maybe (Value Bool)
configurationType :: Value Text
parallelism :: Maybe (Value Integer)
parallelismPerKPU :: Maybe (Value Integer)
..}
= ParallelismConfigurationProperty
{parallelismPerKPU :: Maybe (Value Integer)
parallelismPerKPU = Value Integer -> Maybe (Value Integer)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "ParallelismPerKPU" ParallelismConfigurationProperty
Value Integer
newValue, Maybe (Value Bool)
Maybe (Value Integer)
()
Value Text
haddock_workaround_ :: ()
autoScalingEnabled :: Maybe (Value Bool)
configurationType :: Value Text
parallelism :: Maybe (Value Integer)
haddock_workaround_ :: ()
autoScalingEnabled :: Maybe (Value Bool)
configurationType :: Value Text
parallelism :: Maybe (Value Integer)
..}