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