module Stratosphere.KinesisAnalytics.Application.InputParallelismProperty (
InputParallelismProperty(..), mkInputParallelismProperty
) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data InputParallelismProperty
=
InputParallelismProperty {InputParallelismProperty -> ()
haddock_workaround_ :: (),
InputParallelismProperty -> Maybe (Value Integer)
count :: (Prelude.Maybe (Value Prelude.Integer))}
deriving stock (InputParallelismProperty -> InputParallelismProperty -> Bool
(InputParallelismProperty -> InputParallelismProperty -> Bool)
-> (InputParallelismProperty -> InputParallelismProperty -> Bool)
-> Eq InputParallelismProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: InputParallelismProperty -> InputParallelismProperty -> Bool
== :: InputParallelismProperty -> InputParallelismProperty -> Bool
$c/= :: InputParallelismProperty -> InputParallelismProperty -> Bool
/= :: InputParallelismProperty -> InputParallelismProperty -> Bool
Prelude.Eq, Int -> InputParallelismProperty -> ShowS
[InputParallelismProperty] -> ShowS
InputParallelismProperty -> String
(Int -> InputParallelismProperty -> ShowS)
-> (InputParallelismProperty -> String)
-> ([InputParallelismProperty] -> ShowS)
-> Show InputParallelismProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> InputParallelismProperty -> ShowS
showsPrec :: Int -> InputParallelismProperty -> ShowS
$cshow :: InputParallelismProperty -> String
show :: InputParallelismProperty -> String
$cshowList :: [InputParallelismProperty] -> ShowS
showList :: [InputParallelismProperty] -> ShowS
Prelude.Show)
mkInputParallelismProperty :: InputParallelismProperty
mkInputParallelismProperty :: InputParallelismProperty
mkInputParallelismProperty
= InputParallelismProperty
{haddock_workaround_ :: ()
haddock_workaround_ = (), count :: Maybe (Value Integer)
count = Maybe (Value Integer)
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties InputParallelismProperty where
toResourceProperties :: InputParallelismProperty -> ResourceProperties
toResourceProperties InputParallelismProperty {Maybe (Value Integer)
()
haddock_workaround_ :: InputParallelismProperty -> ()
count :: InputParallelismProperty -> Maybe (Value Integer)
haddock_workaround_ :: ()
count :: Maybe (Value Integer)
..}
= ResourceProperties
{awsType :: Text
awsType = Text
"AWS::KinesisAnalytics::Application.InputParallelism",
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 -> 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
"Count" (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)
count])}
instance JSON.ToJSON InputParallelismProperty where
toJSON :: InputParallelismProperty -> Value
toJSON InputParallelismProperty {Maybe (Value Integer)
()
haddock_workaround_ :: InputParallelismProperty -> ()
count :: InputParallelismProperty -> Maybe (Value Integer)
haddock_workaround_ :: ()
count :: Maybe (Value Integer)
..}
= [(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 -> 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
"Count" (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)
count]))
instance Property "Count" InputParallelismProperty where
type PropertyType "Count" InputParallelismProperty = Value Prelude.Integer
set :: PropertyType "Count" InputParallelismProperty
-> InputParallelismProperty -> InputParallelismProperty
set PropertyType "Count" InputParallelismProperty
newValue InputParallelismProperty {Maybe (Value Integer)
()
haddock_workaround_ :: InputParallelismProperty -> ()
count :: InputParallelismProperty -> Maybe (Value Integer)
haddock_workaround_ :: ()
count :: Maybe (Value Integer)
..}
= InputParallelismProperty {count :: Maybe (Value Integer)
count = Value Integer -> Maybe (Value Integer)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "Count" InputParallelismProperty
Value Integer
newValue, ()
haddock_workaround_ :: ()
haddock_workaround_ :: ()
..}